Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kHttpServer_SetPort | ( | kHttpServer | server,
|  | k32u | port
| ) |  |

Sets the local port to which the server should bind.

By default, the server will bind to port 80.

This function can only be called while the server is stopped.

Parameters

  server | Server object.
  port | Port number.

Returns
  Operation status.