IP Addresses
- IPv4 address is 32 bits long. Each byte is 8 bits. Byte is octet.
- IPv6 address is 128 bits long.
Erlang inet module
Sockets
Internet Sockets
-
Stream socket – connection oriented, full duplex (can receive and send data through the socket), packets are delivered in order and unduplicated.
Erlang uses gen_tcp module -
Datagram socket – connectionless
Erlang uses gen_udp module