Reading and Writing Events
Go Up to Non-blocking Connections
Non-blocking sockets generate reading and writing events when they need to read or write over the connection.
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, ReceiveLength or ReceiveText method.
- To write to the socket connection, use the SendBuf, SendStream, or SendStreamThenDrop method.