gen_tcp and message handling

Tony Rogvall tony@REDACTED
Thu Jan 6 12:09:52 CET 2005

2005-01-06 kl. 11.15 skrev Fredrik Thulin:

> On Thursday 06 January 2005 04.36, James Hague wrote:
> ...
>> gen_tcp:connect?  The main reason I'm asking is that it would be nice
>> to register the Erlang port returned by gen_tcp:connect, then send
>> messages to that name, rather than having to pass the TCP port number
>> all around.
> It would be terribly easy for you to spawn a process that has a
> reference to the TCP socket, registers itself and turn signals you send
> it into gen_tcp:send().
It is very easy, but slower !


More information about the erlang-questions mailing list