Erlang TCP client & server sockets with gen_tcp


Article have been moved to my new blog: Erlang TCP server & TCP client sockets with gen_tcp

Today I am going to write a brief article about Erlang gen_tcp usage. Probably the reader already has experience with sockets programming. But just to remind server architecture. First of all listening socket should be created, than server is going into accept state waiting for new connection. Once new connection is accepted server creates new thread to process incoming packets. While server waits for another connection.

Erlang echo server code: