Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kTcpServer_Accept ( kTcpServer  server,
k64u  timeout,
kTcpClient client,
kAlloc  allocator 
)

Blocks until an incoming connection is established, or the specified timeout interval elapses.

The returned connection object can be kNULL if the connection was closed by the remote client before being accepted.

Parameters
serverA kTcpServer object in the listening state.
timeoutThe timeout interval.
clientReturns a kTcpClient object representing the newly-established connection, or kNULL.
allocatorMemory allocator (or kNULL for default).
Returns
Operation status.