Zen API

- Home
- Topics
- Types
- Files

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

  socket | Socket object.
  address | The remote IP address.
  port | The remote port number.
  timeout | The timeout interval, in microseconds.

Returns
  Operation status.