Zen API
|
kStatus kTcpClient_BeginConnect | ( | kTcpClient | client, |
kIpAddress | address, | ||
k32u | port | ||
) |
Begins connecting to a remote end point.
This method can be used in conjuction with kTcpClient_EndConnect to enable useful work to be performed while waiting for 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 client object.
client | TCP client object. |
address | The remote IP address. |
port | The remote port number. |