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.

A 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.