RayA @ Ihug wrote: > When I call the TWSocket->Connect() for the first time every thing > works perfectly, the connection is made and data can be Rx'ed and > Tx'ed without problems > > then I call TWSocket->Close() > > and a few seconds later I call TWSocket->Connect() > - In the OnSessionConnected event I get the error 10048
Is there a reason for binding to a specific port number? Usually a connecting socket should be set to port number zero in order to allow winsock to find and assign an unused port number. Setting property ReuseAddr is dangerous since the port might be already bound by another application. In such case the behavior for all sockets bound to that port is indeterminate. http://msdn.microsoft.com/en-us/library/ms740621.aspx -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be