Zen API
 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
clientTCP client object.
functionCallback function.
receiverCallback context.
Returns
Operation status.