>From perldoc POE::Component::Server::TCP ...
# Accepted public events.
$kernel->yield( "shutdown" ) # initiate shutdown in a
connection
$kernel->post( server => "shutdown" ) # stop listening for
connections
So, post or yield a 'shutdown' event to achieve what you want.
-Al Tobey
On Mon, 2002-12-30 at 13:14, Bob Maccione wrote:
> I've been trying to drop a connection in Component::Server::TCP and am not
> sure the best way of doing it.
>
> The basic flow is that I parse a line (it's a telnet listener) and if the
> line is 'quit' then I want to drop the connection.
>
> I can't just delete the heap and there doesn't seem to be a
> Component::Server::TCP method call that will force a connection to drop.
>
> Any suggestions?
>
> thx,
> bobm
>
********************************************************************
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity
to whom they are addressed. If you have received this
email in error please notify the Priority Health Information
Services Department at (616) 942-0954.
********************************************************************