Article contains code of Erlang SSL echo server and SSL client example. Code is complete and working. Pattern can be useful in real world projects.
UDP is a widely used protocol and Erlang is a great platform for different network application different kinds. Today I decided to publish small UDP echo server example. I know that UDP socket usage is very simple in Erlang, but I think somebody will find this code usefull.
Article describes algorithm of random row selection based on weight, so some rows will be selected more often than other. Article includes sample codes, so I hope will bу helpful to somebody.
Do not hesitate to leave comments if you have ideas how to improve the algorithm.