[erlang-questions] Dispatch arrived gen_udp messages

Jesper Louis Andersen jesper.louis.andersen@REDACTED
Mon Mar 7 10:04:17 CET 2011


Not in my experience. I use an ets table for the dispatching. I think the
udp tracking code contains an example in etorrent. :) it is definitely worth
generalizing eventually.

J.
On Mar 7, 2011 9:55 AM, "Edward Wang" <yujiangw@REDACTED> 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