[erlang-questions] Dispatch arrived gen_udp messages

Bengt Kleberg <>
Mon Mar 7 10:02:10 CET 2011


Greetings,

I think you are looking for gen_udp:controlling_process/2
Please check the documentation (ex:
http://erldocs.com/R14B01/kernel/gen_udp.html?i=2&search=gen_udp#controlling_process/2.


bengt

On Mon, 2011-03-07 at 09:54 +0100, Edward Wang wrote:
> I gen_udp:open/1 a udp socket in one process, gen_udp:send/4 some packets in
> another using that socket. It seems process that opens the socket gets
> arrived udp messages. Is there a way to get these udp messages dispatched to
> the process send them? Of course I can dispatch them myself. I just wonder
> if there's build-in mechanism to do the same.
> 
> -Edward



More information about the erlang-questions mailing list