Zen API
|
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.
server | A kTcpServer object in the listening state. |
timeout | The timeout interval. |
client | Returns a kTcpClient object representing the newly-established connection, or kNULL. |
allocator | Memory allocator (or kNULL for default). |