[L2Ork-dev] WSAStartup and fixing [pd~]

Jonathan Wilkes jon.w.wilkes at gmail.com
Mon Jul 2 23:59:24 EDT 2018


Hi list,

I've got a fix in the works for running [pd~] with the "-nogui" flag.

I ported some refactored code from Pd Vanilla. Unfortunately, that
code seems not to have been tested and almost certainly breaks
for the case of running Pd in "-nogui" mode under Windows and
attempting to make socket connections.

In sys_startgui of s_inter.c there are two #ifdefs relating to
the required call to WSAStartup for Windows. One #ifdef
declares and defines some variables, and the other makes the
function call.

I'd like to move that code into sys_main so that it is called for
both "-nogui" mode and normal mode. (One of the fixes for pd~
relies on a separate sys_fakefromgui function for "-nogui" mode.)

However, in between them is some allocation of fd polling vars and
a binbuf for receiving messages from the GUI (or whatever happens to
be sending data to Pd).

Is there any reason those vars are sandwiched in between the MSW
#ifdefs? If not, can I move the WSAStartup stuff to sys_main with
impunity?

Thanks,
Jonathan


More information about the L2Ork-dev mailing list