debian man page for poe::component::irc::cookbook::disconnecting

Query: poe::component::irc::cookbook::disconnecting

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

POE::Component::IRC::Cookbook::Disconnecting(3pm)	User Contributed Perl Documentation	 POE::Component::IRC::Cookbook::Disconnecting(3pm)

NAME
POE::Component::IRC::Cookbook::Disconnecting - How to disconnect gracefully with PoCo-IRC
SYNOPSIS
Shutting down an IRC bot can be quick and messy, or slow and graceful.
DESCRIPTION
There are two ways you can shut down an IRC bot/client. The quick and dirty way is rather simple: exit; It exits the program, shutting down the socket, and everybody online sees yet another "Connection reset by peer" or "Remote end closed the socket" or something. As of version 6.50, all you need to do in order to shut down gracefully is to send a "shutdown" event to the IRC component. It will make sure your quit message (if any) gets delivered, and will forcibly disconnect if there are any problems (faulty server or network issues). After doing this, it will unregister all sessions and clean up after itself. If you want to do something more elaborate on your own, take a look at the following documentation: logged in, "connected", "quit", "disconnect", and "unregister".
AUTHOR
Rocco Caputo and Hinrik Oern Sigur`sson. perl v5.14.2 2011-12-07 POE::Component::IRC::Cookbook::Disconnecting(3pm)
Related Man Pages
poe::component::irc::cookbook::basicbot(3pm) - debian
poe::component::irc::plugin::autojoin(3pm) - debian
poe::component::irc::plugin::botaddressed(3pm) - debian
poe::component::irc::plugin::ctcp(3pm) - debian
poe::component::irc::plugin::proxy(3pm) - debian
Similar Topics in the Unix Linux Community
Detecting unused variables...
A (ksh) Library For and From UNIX.com
New UNIX and Linux History Sections
My first PERL incarnation... Audio Oscillograph