[erlang-questions] Can gen_tcp/inets store connection-specific user state?
Tue Jul 20 00:57:26 CEST 2010
On Mon, Jul 19, 2010 at 4:48 PM, Tony Rogvall <> wrote:
> Why not use a global ets table? (use socket/port as a key)
Then you lose the O(1) properties of having the whole system round trip
state for you. In that regard I'd prefer to use a process per connection.
> (There is a hidden way of doing it, but it's already taken by inet ;-)
Ooh really! What's the hidden way of doing it?
I'm using this as part of implementing Reia and want Reia's socket objects
included in the active mode messages as opposed to raw Erlang ports. So I
wouldn't be opposed to doing some crazy hacks so long as I can get them to
peacefully coexist with inets.
Medioh! A Kudelski Brand
More information about the erlang-questions