Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kSocket_EnableBroadcast | ( | kSocket | socket,
|  | kBool | broadcast
| ) |  |

Enables or disables datagram broadcasting.

This function is typically used in conjunction with a UDP socket that is bound to a local address. Sending to kIpAddress_BroacastV4() will broadcast a datagram on the subnet associated with the bound IPv4 address.

Parameters

  socket | Socket object.
  broadcast | kTRUE to enable broadcasts; kFALSE otherwise.

Returns
  Operation status.