[erlang-questions] Dispatch arrived gen_udp messages
Mon Mar 7 10:29:19 CET 2011
Thanks, Bengt. This seems to do the trick.
Only that gen_udp:controlling_process/2 will have effect if being called by
its current controlling process in my test (mac os x). Not sure if that'll
be true for other platforms. The document doesn't explicitly say. I guess
it's better to spell this out.
On Mon, Mar 7, 2011 at 5:02 PM, Bengt Kleberg <>wrote:
> I think you are looking for gen_udp:controlling_process/2
> Please check the documentation (ex:
> 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
> > 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
> > the process send them? Of course I can dispatch them myself. I just
> > if there's build-in mechanism to do the same.
> > -Edward
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:
More information about the erlang-questions