Hello Francois and all,

I have a client socket. It has to use the same source port
(to avoid a problem on the server side.) It is supposed to
connect to a server from a specified source port, do something,
shutdown, and connect again. I checked the twsocket.pas file,
SO_REUSEADDR is used by default, so I should have no problem
reusing the source port. But I find that I can connect and do
things the first time, the second time OnSessoinConnect() always
returns 10048 error (specified address already in use.) When
I trace into twsocket.pas, bindSocket() doesn't really returns
an error. I wonder why I'm getting error 10048? I'm manually
calling Connect from a button for testing, not in any of the
twsocket message handlers.

Best regards,

To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to