If you are closing and then reusing a port you need to do SO_REUSEADDR in windows and FD_CLOEXEC in unix. Otherwise the host holds onto the port for a bit. If this is your problem there was a recent message with the specific code required.
On Tue, Dec 21, 2010 at 7:40 PM, bill lam <[email protected]> wrote: > You attempted to bind more than one socket to the same port. I don't > understand why it worked for you under winxp. > > Втр, 21 Дек 2010, Eric Morlet писал(а): > > When executed the following sequence of statements > > > > sdcleanup'' > > SKLISTEN =: 0 pick sdcheck sdsocket'' > > sdcheck sdbind SKLISTEN ; AF_INET_jsocket_ ; '' ; 1600 > > > > gives the following error message: > > > > |unknown error: sdcheck > > | sdcheck sdbind SKLISTEN;AF_INET_jsocket_;'';1600 > > > > These statements are in a loop. Sometimes the statements are executed > > without error messages the first time around (not always). Later it > always > > fails. > > > > The application works perfectly well under WinXP. The error occurs > > when the application runs under Linux. > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > -- > regards, > ==================================================== > GPG key 1024D/4434BAB3 2008-08-24 > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
