Skip to content
Simple TCP Server
Erlang
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
include
src
README.md
rebar.config
sys.config
vm.args

README.md

TCP Server

Simple Erlang/OTP non-blocking TCP Server in 100 LOC dedicated to all Erlang newcomers.

Build

$ mad dep com pla rep

MAD is simplest 1000 LOC Erlang build tool written in Erlang: http://github.com/synrc/mad

Run

> {ok,S2} = gen_tcp:connect({127,0,0,1},8100,[{packet,2}]),
            gen_tcp:send(S2,<<"hello">>),
            flush().
Cli Socket: #Port<0.16165>
Shell got {tcp,#Port<0.16164>,"hello"}
ok

Credits

  • Maxim Sokhatsky

OM A HUM

You can’t perform that action at this time.