Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kSocket_Connect ( kSocket  socket,
kIpAddress  address,
k32u  port,
k64u  timeout 
)

Connects the socket to a remote end point.

Connection can be attempted only once per socket object.

Parameters
socketSocket object.
addressThe remote IP address.
portThe remote port number.
timeoutThe timeout interval, in microseconds.
Returns
Operation status.