Network Programming with Erlang

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

Non-blocking Servers

Data Serialization

term_to_binary and binary_to_term

JSON

SSL

Distributed Erlang RPC

HTTP with Cowboy

Websockets with Cowboy

Messaging with RabbitMQ

Templates with ErlyDTL

Leave a Reply