This module provides functions for communicating with sockets using the UDP protocol.
As returned by
Closes a UDP socket.
Assigns a new controlling process
Associates a UDP port number (
The following options are available:
Received
Received
If the host has many network interfaces, this option specifies which one to use.
Same as
If a socket has somehow been opened without using
Sets up the socket for IPv6.
Sets up the socket for IPv4.
Sets up a Unix Domain Socket. See
Overrides which callback module is used. Defaults to
Sets the local device for a multicast socket.
When
Option
Datagrams with a TTL of 1 are not forwarded beyond the local
network. Defaults to
Joins a multicast group.
Leaves a multicast group.
See
The returned socket
{udp, Socket, IP, InPortNo, Packet} % Without ancillary data
{udp, Socket, IP, InPortNo, AncData, Packet} % With ancillary data
The message contains an
If the socket is not in an active mode, data can be
retrieved through the
When a socket in
{udp_passive, Socket}
Default value for the receive buffer option is
If
Receives a packet from a socket in passive mode. Optional parameter
If any of the socket
Sends a packet to the specified
This function is equivalent to
Sends a packet to the specified
This clause is equivalent to
Sends a packet to the specified
The ancillary data
Sends a packet to the specified
This is a legacy clause mostly for
Sends a packet to the specified
Argument