• Creates a new UDP socket.

    Parameters

    • Optional port: number

      The local port number. If port is zero or missing, a random port number will be automatically selected.

      Optional
    • Optional broadcast: boolean

      Optional, if ture, a broadcast socket will be created.

      Optional

    Returns LibertasFd

    A socket fd.

    Remarks

    Libertas-OS limits the maximum concurrent sockets a task can create. An error will be raised if the limit is reached.

Generated using TypeDoc