[PD-dev] mrpeach/tcpserver REUSEADDR Linux fix

Ivica Ico Bukvic ico at vt.edu
Tue May 4 19:01:47 CEST 2010


> Hmmm, I just tried this on WinXP and it works fine (Pd version 
> 0.42.5-extended-20100411 but with the new tcpserver).
> I can even open multiple copies of the patch without errors or failure 
> to create.
> I'll check later on a debian machine.
> 
> Martin

I just noticed you patched the source earlier today to fix stuck open
socket--many thanks for doing this! It appears Linux does not like use
of "char" for optVal in the setsockopt call but rather prefers int.
Since the rest of the code treats optVal as an int anyhow this should
provide an universal fix without having to also generate optLen or
ifdefs. Can you test this on Windows as an alternative as that would
make the code cleaner? In other words, keeping the old call and simply
changing optVal to int as it is in its current version.

Best wishes,

Ico







More information about the Pd-dev mailing list