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