SmolNet.Inet.Udp (smolnet v0.7.1)

Copy Markdown View Source

IPv4 callback module for Erlang :gen_udp and :inet.

Socket operations are implemented by SmolNet.Inet6.Udp; this module supplies OTP's IPv4 address-resolution callbacks and selects :inet when a socket is opened.

Summary

Functions

close(socket)

See SmolNet.Inet6.Udp.close/1.

connect(socket, sockaddr)

See SmolNet.Inet6.Udp.connect/2.

connect(socket, address, port)

See SmolNet.Inet6.Udp.connect/3.

controlling_process(socket, owner)

See SmolNet.Inet6.Udp.controlling_process/2.

family()

@spec family() :: :inet

fdopen(fd, options)

See SmolNet.Inet6.Udp.fdopen/2.

getaddr(address)

getaddr(address, timer)

getopts(socket, names)

See SmolNet.Inet6.Udp.getopts/2.

getserv(port)

getstat(socket, names)

See SmolNet.Inet6.Udp.getstat/2.

info(socket)

See SmolNet.Inet6.Udp.info/1.

open(port)

open(port, options)

peername(socket)

See SmolNet.Inet6.Udp.peername/1.

recv(socket, length)

See SmolNet.Inet6.Udp.recv/2.

recv(socket, length, timeout)

See SmolNet.Inet6.Udp.recv/3.

send(socket, packet)

See SmolNet.Inet6.Udp.send/2.

send(socket, destination, packet)

See SmolNet.Inet6.Udp.send/3.

send(socket, destination, ancillary, packet)

See SmolNet.Inet6.Udp.send/4.

send(socket, address, port, ancillary, packet)

See SmolNet.Inet6.Udp.send/5.

setopts(socket, options)

See SmolNet.Inet6.Udp.setopts/2.

socket_to_list(socket)

See SmolNet.Inet6.Udp.socket_to_list/1.

sockname(socket)

See SmolNet.Inet6.Udp.sockname/1.

translate_ip(address)