Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kUdpClient_EnableBroadcast | ( | kUdpClient | client,
|  | kBool | broadcast
| ) |  |

Enables or disables broadcasting.

If broadcasting is enabled, sending to kIpAddress_BroadcastV4() will broadcast a datagram on the subnet associated with the IPv4 address to which the client is bound.

Broadcasts are disabled by default.

Parameters

  client | UDP client object.
  broadcast | kTRUE to enable broadcasts; kFALSE otherwise.

Returns
  Operation status.