Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kSocket_Accept | ( | kSocket | socket,
|  | kSocket * | connection,
|  | kAlloc | allocator
| ) |  |

Blocks until an incoming connection request is accepted.

Parameters

  socket | A socket object in the listening state.
  connection | Receives a socket object representing the newly-established connection, or kNULL.
  allocator | Memory allocator (or kNULL for default).

Returns
  Operation status.