typedef enum { SyncMode, AsyncMode } TOpenMode;
SyncMode
—
Synchronous client-server communication
mode. This is a blocking mode, which means the read or write function
does not return to the calling process until the operation is complete
and the requested data has been written into or read from the socket.
AsyncMode
—
Asynchronous client-server communication
mode. The asynchronous communication mode requires the use of the
TScanServerEx function. To force delivery of pending messages, use
TScanServerEx with the TSCAN_MODE_WRITE
scanning mode.
This is a nonblocking mode. In this mode, the result of the request
is returned immediately after the operation is started or queued.