M
M
Maxim Barulin2014-12-08 13:35:19
Erlang
Maxim Barulin, 2014-12-08 13:35:19

Erlang. How to write a tcp server following the principles of otp?

Good day,% Habrauser%!

The Internet is full of articles that describe the process of creating a socket server in erlang, for example , and everything would be fine, but using undocumented features is evil. Plus in the reviews, where it is often found, that this approach is not correct and does not satisfy the principles of otp. And so, where to esteem/see, the correct approach to writing of the server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-12-08
@Slavenin999

Obviously try looking at it here: https://github.com/ninenines/cowboy/tree/master/ex... (this is http)
or here: https://github.com/ninenines/ranch/tree/master/examples (this applies to everything tcp, udp)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question