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

Begins connecting the socket to a remote end point.

This method can be used in conjuction with kSocket_EndConnect to enable useful work to be performed while waiting for socket connection to complete. If BeginConnect completes successfully, the EndConnect method must be called at some point thereafter. After calling BeginConnect, no other methods may be called on this object before EndConnect (though the object could be safely destroyed, if desired).

Connection can be attempted only once per socket object.

Parameters
socketSocket object.
addressThe remote IP address.
portThe remote port number.
Returns
Operation status.
See also
kSocket_EndConnect