| get_iface_ip_addr/1 | Acquires the IP address of a given interface. |
| server/4 | Implements a generic TCP/IP socket server. |
get_iface_ip_addr(Interface::string()) -> ip_addr()
Acquires the IP address of a given interface. Thanks to Samuel Rivas for this code.
server(Fun::fun(), Port::integer(), Opts::[option()], MaxCon::integer()) -> pid() | {error, reason()}
Implements a generic TCP/IP socket server.
Opens a socket with the given options on the given port and spawns
Fun(Socket) to handle each incoming connection, up to
the specified maximum number of connections.