Erlang TCP server for mobile client