Elixir TCP Server based on OTP principles, guided by the following URLS:
I built this TCP server in order to learn elixir & learn how to build..a TCP server in elixir. ;) Therefore, take the code with a grain of salt & if you have some suggestions, please tell me. I'm eager to learn more.
Also: you might not want to run it in production. There are better options like ranch.
Opening a TCP server on port 5000 (configurable through config/app.config
) and replying
with the same string as you sent with e.g. telnet localhost 5000
.
brew install elixir
)git clone [email protected]:mweibel/tcp-server.ex.git
mix get.deps
iex --erl "-config config/app.config" -S mix run
MIT