Non-blocking connections, read and write operations are asynchronous, so you do not need to block otherCodeTo establish a non-blocking connection:
1. Set the clienttype attribute to ctnonblocking in the client socket.
2. Set the servertype attribute to stnonblocking in the server socket.
Read and Write operation events
When sockets wants to connect to read or write, it will generate a read and write operation event to inform your socket. On the client sockets, you can
These events respond. on the server side, scokets can respond to these events in the onclientread or onclientwrite event handle. Windows associated with the socket connection
The cancelength method is used to determine the number of bytes to be sent in the socket at the other end of the connection ).
Use the socket connection to write data using the sendbuf, sendstream, or sendtext method. If you do not need to connect to the socket after sending information through the socket, you can use sendstreamthend
Method of ROP.
Sendstreamthendrop closes the socket connection after writing all the information. It can read information from the stream. If you use sendstream or sendstreamthendrop,
Do not release stream
Object. The socket will automatically release the stream after the connection ends.
Note: sendstreamthendrop will disable an independent customer Connection Service, instead of listening for connections.