Brian Raven wrote: > I would suggest using IO::Socket::INET and IO::Select rather than the > code in the original message. Much easier.
I agree. > Also, on a pedantic note, you cannot have multiple processes listening > on a single port. Using SO_REUSEADDR means that multiple processes can > bind to the port, but only one at a time can listen. This will no doubt > be confused by using fork on Win32, which is emulated in Activestate > Perl with threads. I'd go a step farther and suggest only one pocess should bind to a socket on Win32 - it will make things a lot easier. It's not that difficult to create a single process server that can handle most situations. Extensive processing can be passed off to detached processes if necessary, but that would mean you would probably have a need for more than 5 processes running simultaneously to actually warrant it. _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
