Zen API
 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
socketDestination for the constructed object handle.
ipVersionInternet Protocol version.
socketTypeThe type of socket to create (i.e. TCP or UDP).
allocatorMemory allocator (or kNULL for default).
Returns
Operation status.