> But then for a response
> Is this correct ?
>
> 1) In server.DataAvailable event : server : ClientServer.sendstring
> response;
> 2) In Server : ClientServer.Datasent event :
> server.clientserver.closedelayed

It depends on the protocol you are designing.
Most protocols in use (FTP, SMTP, POP3 and more) are line oriented and use a 
command/response scheme:
1. The client connect
2. the sender send his welcome banner
3. the client send a command
4. the server send his reply
5. goto step 3 until client send hist "quit" command for which the server 
gracefuly close the connection.

--
[EMAIL PROTECTED]
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
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

Reply via email to