two gen_udp questions

Micha micha-1@REDACTED
Sat Aug 8 16:18:11 CEST 2009


Hi,

I have two question about udp handling:

1. can a gen_server also receive udp messages? When do I have to open the udp 
port for doing this (start_link, init)?

2. if my server receives an udp message and spawns a process to handle the 
request, is it better to let the spawned process sent the answer back over the 
udp socket or should the process sent the answer back to my udp handler which 
in turn sents it over the udp socket to it's destination.

thanks for answering,
 Michael





More information about the erlang-questions mailing list