Stream socket (listen+accept) behaviour for Erlang