Zen API

- Home
- Topics
- Types
- Files

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

  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).

Returns
  Operation status.