Chapter 3. Writing a TCP-based RPC service
This chapter covers
- Introduction to OTP behaviors
- Module layout conventions and EDoc annotations
- Implementing an RPC server using TCP/IP
- Talking to your server over telnet
What!? No “hello world”?
That’s right, no “hello world.” In chapter 2, we provided a review of the Erlang language, and now it’s time to do something concrete. In the spirit of getting down and dirty with real-world Erlang, we say no to “hello world”! Instead, you’ll create something that is immediately useable. You’re going to build a TCP-enabled RPC server!
In case you don’t know what that is, let us explain. RPC stands for remote procedure call. An RPC server allows you to call procedures (that is, functions) remotely from another ...
Get Erlang and OTP in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.