Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kWebSocket_Connect | ( | kWebSocket | webSocket,
|  | kIpAddress | address,
|  | k32u | port,
|  | const kChar * | host,
|  | const kChar * | uri,
|  | k64u | timeout
| ) |  |

Connects a WebSocket to an HTTP server.

Parameters

  webSocket | WebSocket object.
  address | HTTP server address.
  port | HTTP server port number.
  host | HTTP request host (distinguishes between multiple hosts at same address).
  uri | HTTP request URI.
  timeout | Timeout, in microseconds.

Returns
  Operation status.