crenz has asked for the wisdom of the Perl Monks concerning the following question:
Fellow monks,
I'm working on implementing a UDP server that dispatches messages to different callback functions, depending on the content. The problem is that I'm not sure which is the best way to implement a non-blocking server efficiently. My list of priorities (in this order):
Would it be more efficient to use IO::Socket in non-blocking mode and let the user call a $server->if_you_got_a_message_then_do_something() in a while loop (ie. polling) or should I use threading?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Efficient non-blocking UDP server
by matija (Priest) on Mar 19, 2004 at 21:32 UTC | |
|
Re: Efficient non-blocking UDP server
by NetWallah (Canon) on Mar 19, 2004 at 21:40 UTC | |
|
Re: Efficient non-blocking UDP server
by RMGir (Prior) on Mar 19, 2004 at 21:36 UTC | |
|
Re: Efficient non-blocking UDP server
by calin (Deacon) on Mar 20, 2004 at 16:47 UTC | |
by liz (Monsignor) on Mar 20, 2004 at 21:25 UTC | |
by calin (Deacon) on Mar 21, 2004 at 19:19 UTC |