On Fri, Mar 05, 2004 at 10:49:03PM -0600, Jay Strauss wrote: > > I have a POE::Component::Server::TCP. I'd like to prevent connections under > certain circumstances, even though I'm still in the event loop. Is there a > way to do this? That is I want my program to run, I just don't want to > allow connections at certain times.
Not as far as I know. The problem: accept() returns the remote address, so the connection must be accepted before you can decide whether the client should connect. By that time the client HAS connected, and the best you can do is hang up on it right away. You can tweak your firewall if you know your "certain circumstances" ahead of time. -- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/