Non-blocking sockets generate reading and writing events when they need to read or write over the connection. You can respond to these notifications in an OnReceive or OnSend event handler.
The socket object associated with the socket connection is provided as a parameter to the read or write event handlers. This socket object provides a number of methods to allow you to read or write over the connection.
To read from the socket connection, use the ReceiveBuf or Receiveln method. To write to the socket connection, use the SendBuf, SendStream, or Sendln.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|