SmolNet.Inet.Tcp (smolnet v0.7.1)

Copy Markdown View Source

IPv4 callback module for Erlang :gen_tcp and :inet.

Socket operations are implemented by SmolNet.Inet6.Tcp; this module supplies OTP's IPv4 address-resolution callbacks and selects :inet during connection and listener setup.

Summary

Functions

accept(socket)

See SmolNet.Inet6.Tcp.accept/1.

accept(socket, timeout)

See SmolNet.Inet6.Tcp.accept/2.

cancel_monitor(ref)

See SmolNet.Inet6.Tcp.cancel_monitor/1.

close(socket)

See SmolNet.Inet6.Tcp.close/1.

connect(address, port, options)

connect(address, port, options, timeout)

controlling_process(socket, owner)

See SmolNet.Inet6.Tcp.controlling_process/2.

family()

@spec family() :: :inet

fdopen(fd, options)

See SmolNet.Inet6.Tcp.fdopen/2.

getaddr(address)

getaddr(address, timer)

getaddrs(address)

getaddrs(address, timer)

getopts(socket, names)

See SmolNet.Inet6.Tcp.getopts/2.

getserv(port)

getstat(socket, names)

See SmolNet.Inet6.Tcp.getstat/2.

info(socket)

See SmolNet.Inet6.Tcp.info/1.

listen(port, options)

mask(mask, address)

monitor(socket)

See SmolNet.Inet6.Tcp.monitor/1.

parse_address(address)

peername(socket)

See SmolNet.Inet6.Tcp.peername/1.

port(socket)

See SmolNet.Inet6.Tcp.port/1.

recv(socket, length)

See SmolNet.Inet6.Tcp.recv/2.

recv(socket, length, timeout)

See SmolNet.Inet6.Tcp.recv/3.

send(socket, packet)

See SmolNet.Inet6.Tcp.send/2.

send(socket, packet, options)

See SmolNet.Inet6.Tcp.send/3.

setopts(socket, options)

See SmolNet.Inet6.Tcp.setopts/2.

shutdown(socket, how)

See SmolNet.Inet6.Tcp.shutdown/2.

socket_to_list(socket)

See SmolNet.Inet6.Tcp.socket_to_list/1.

sockname(socket)

See SmolNet.Inet6.Tcp.sockname/1.

translate_ip(address)

unrecv(socket, data)

See SmolNet.Inet6.Tcp.unrecv/2.