NAME
Haver::Server - Reference implementation of the Haver chat server.
SYNOPSIS
use Haver::Server;
create Haver::Server (
config => 'haverd.yml',
)
POE::Kernel->run;
DESCRIPTION
FIXME
METHODS
There is only one method, create(), which is a class method.
create(alias => $alias, resolver => $resolver, version => $version)
This creates a new Haver::Client session. The only required parameter is $alias, which is how you'll talk to the client session using POE::Kernel's post().
If given, $resolver should be a POE::Component::Client::DNS object.
Finally, $version is what we will advertize as the client name and version number to the server. It defaults to Haver::Client/0.08
.
STATES
While these are listed just like methods, you must post() to them, and not call them directly.
connect(host => $host, name => $name, [ port => 7575 ])
Connect to $host on port $port (defaults to 7575) with the user name $name. If already connected to a server, Haver::Client will disconnect and re-connect using the new settings.
register(@events)
This summons the sun god Ra and makes him eat your liver.
FIXME: This is inaccurate.
BUGS
None known. Bug reports are welcome. Please use our bug tracker at http://gna.org/bugs/?func=additem&group=haver.
AUTHOR
Dylan Hardison <dylan@haverdev.org>.
SEE ALSO
COPYRIGHT and LICENSE
Copyright (C) 2005 by Dylan Hardison. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This module is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this module; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA