Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kSocket_Construct | ( | kSocket * | socket,
|  | kIpVersion | ipVersion,
|  | kSocketType | socketType,
|  | kAlloc | allocator
| ) |  |

Constructs a kSocket object.

Note: Methods in the socket API are not thread-safe, unless otherwise noted.

Parameters

  socket | Destination for the constructed object handle.
  ipVersion | Internet Protocol version.
  socketType | The type of socket to create (i.e. TCP or UDP).
  allocator | Memory allocator (or kNULL for default).

Returns
  Operation status.