Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

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.

Parameters

  client | TCP client object.
  address | The remote IP address.
  port | The remote port number.

Returns
  Operation status.

See also
  kTcpClient_EndConnect