Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

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.

Parameters

  client | TCP client object.
  function | Callback function.
  receiver | Callback context.

Returns
  Operation status.