Erlang General Non-blocking TCP Server