> How to cancel SmtpCli->Connect() call if this connection attempt > is timed out ? > > If SmtpCli->Connect() terminated by SmtpCli->Abort() - I notice MANY > 10004 errors during next connection attempts.
Abort is the way to go. It close the socket at winsock level. Which winsock call is producing error 10004 ? Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be ----- Original Message ----- From: "Max Terentiev" <[EMAIL PROTECTED]> To: "ICS support mailing" <twsocket@elists.org> Sent: Wednesday, August 02, 2006 11:16 AM Subject: [twsocket] Connect() time out > Hello, > > How to cancel SmtpCli->Connect() call if this connection attempt > is timed out ? > > If SmtpCli->Connect() terminated by SmtpCli->Abort() - I notice MANY > 10004 errors during next connection attempts. > > Maybe it's needed to call some Winsock API function directly on > SmtpCli->CtrlSocket ? > > What is proper way to cancel Connect() by timeout ? > > --- > With best regards, Max Terentiev. > Business Software Products. > AMS Development Team. > [EMAIL PROTECTED] > > -- > 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 -- 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