> I need a "client" function that connects to server, > send data and close connection.
You'd better design your application using the asynchronous mode which is the native mode for ICS. In short, use the events ! > Here, the result is false everytimes because the socket is never connected. This is because the socket is asynchronous (non-blocking). Read this explanation: http://wiki.overbyte.be/wiki/index.php/Asynchronous_Paradigm > How could I do this function works ? Use async model ! Use events ! If you really want somthing blocking, use async mode and the use a wait loop which check for a flag set asynchronously by some event. 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 -- 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