> In the ICS Socket components's OnSessionConnected / > OnClientConnect events you are passing Error parameter. When will > this get a value ?If the OnConnected events are triggered does it > mean connection is active or is it only if Error=0 ?
OnSessionConnected or OnClientConnect should always be triggered after a Connect attempt to indicate it has finished, with Error=0 if successful. For instance, SSL negotiation only starts for Error=0. If not zero, GetWinsockErr (Error) will give you a string error message. For instance, there may be DNS lookup failure. You may want to trigger a repeat connection attempt. But not all the derived components and samples actually check Error. Angus -- 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