Documentation

Std.Internal.Async.UDP

Represents a UDP socket.

Instances For

    Membership type for multicast operations.

    Instances For
      @[inline]

      Creates a new UDP socket.

      Equations
      Instances For
        @[inline]

        Binds the UDP socket to the given address. Address reuse is enabled to allow rebinding the same address.

        Equations
        Instances For
          @[inline]

          Associates the UDP socket with the given address and port, so every message sent by this socket is automatically sent to that destination.

          Equations
          Instances For
            @[inline]

            Sends data through an UDP socket. The addr parameter specifies the destination address. If addr is none, the data is sent to the default peer address set by connect.

            Equations
            Instances For
              @[inline]

              Receives data from an UDP socket. size is for the maximum bytes to receive. The promise resolves when some data is available or an error occurs. If the socket has not been previously bound with bind, it is automatically bound to 0.0.0.0 (all interfaces) with a random port.

              Equations
              Instances For
                @[inline]

                Gets the local address of the UDP socket.

                Equations
                Instances For
                  @[inline]

                  Gets the remote address of the UDP socket. On unconnected handles, it throws the .invalidArgument. error.

                  Equations
                  Instances For
                    @[inline]

                    Enables or disables broadcasting for the UDP socket.

                    Equations
                    Instances For
                      @[inline]

                      Enables or disables multicast loopback for the UDP socket.

                      Equations
                      Instances For
                        @[inline]

                        Sets the time-to-live (TTL) for multicast packets.

                        Equations
                        Instances For
                          @[inline]
                          def Std.Internal.IO.Async.UDP.Socket.setMembership (s : Socket) (multicastAddr : Net.IPAddr) (interfaceAddr : Option Net.IPAddr) (membership : Membership) :

                          Sets the membership for joining or leaving a multicast group.

                          Equations
                          Instances For
                            @[inline]

                            Sets the multicast interface for sending packets.

                            Equations
                            Instances For
                              @[inline]

                              Sets the TTL for outgoing packets.

                              Equations
                              Instances For