[erlang-questions] Multiple UDP receivers and senders

alexd <>
Fri May 23 15:09:22 CEST 2008


The gen_tcp documentation states : 

"It is worth noting that the accept call does not have to be issued from 
the socket owner process. Using version 5.5.3 and higher of the emulator, 
multiple simultaneous accept calls can be issued from different processes, 
which allows for a pool of acceptor processes handling incoming 
connections."

Does anybody know if a similar thing is possible with gen_udp? i.e. I'd 
like to have a pool of Erlang processes receiving messages sent to a 
particular port.

Also, does anybody know if it is possible to open a UDP socket in one 
Erlang process, receiving UDP messages in that process, whilst 
simultaneously sending UDP messages from the same port in a different 
Erlang process?

Thanks very much for your help!


Alex.



More information about the erlang-questions mailing list