Libertas OS API Documentation
    Preparing search index...

    Function Libertas_NetNewUdp

    • Creates a new UDP socket.

      Parameters

      • Optionalport: number

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

      • Optionalbroadcast: boolean

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

      Returns number

      A socket fd.

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