|
Zen API
|
| kStatus kTcpClient_SetCancelHandler | ( | kTcpClient | client, |
| kCallbackFx | function, | ||
| kPointer | receiver | ||
| ) |
Sets a cancel query handler, which can be used to asynchronously terminate read/write operations.
kTcpClient_SetCancelHandler and kTcpClient_Cancel represent alternative approaches to I/O cancellation; use one or the other approach, but not both.
| client | TCP client object. |
| function | Callback function. |
| receiver | Callback context. |