daniel cc wrote: > Hi, > Can someone please help me out w ith a sample of how to, > send a log (text file) from client to the server? > My connection is with ICSSLServer and ICSSSLClient.
That works the same way as without SSL. And it depends on your protocol. Typically you send a request to the server telling him that you want to send a file. The request would include filename and filesize in bytes. When the server received the request it opens an filestream, turns off LineMode and sends back an OK-response or any error code. On receipt of the OK-response the client opens the file, reads from it into a small buffer i.e. 4-16 KB and sends the buffer content. The client sends subsequent data chunks from event OnDataSent until the file is completely sent. The server simply receives into a small buffer and writes buffer content to the filestream until filesize has been reached. The server turns on LineMode back again and sends a response to the client telling him whether everyting went well or some error occurred. -- 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