Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

net::hotline::user(3pm) [debian man page]

Net::Hotline::User(3pm) 				User Contributed Perl Documentation				   Net::Hotline::User(3pm)

NAME
Net::Hotline::User - User object used internally by Net::Hotline::Client SYNOPSIS
use Net::Hotline::User; $user = new Net::Hotline::User; $user->nick("joe blow"); $user->icon(128); print "Nick: ", $user->nick(), " "; ... DESCRIPTION
Net::Hotline::User is a simple class for storing and retrieving user information, You should never have to create your own Net::Hotline::User objects when using Net::Hotline::Client. Getting and setting attributes is all that should be necessary. CONSTRUCTION
new SOCKET, NICK, LOGIN, ICON, COLOR With no arguments, creates a new Net::Hotline::User object with all attributes set to undef. The other option is to supply exactly 5 arguments as listed above. METHODS
All the Net::Hotline::User methods are simple attribute get/set routines. If given an argument, they set an attribute. In all cases, they return the current value of the attribute. color NUMBER The color of the user in the userlist. Values are numbers from 0 to 3. The hash HTLC_COLORS defined in Net::Hotline::Constants contains number to name color mappings (i.e. $HTLC_COLORS{2} is "red"). Example: use Net::Hotline::Constants qw(HTLC_COLORS); ... print $user->nick(), " is ", $HTLC_COLORS{$user->color()}, " "; icon NUMBER The user's icon number. Negative values are accepted. info TEXT User information as a block of "pretty-formatted" text. login TEXT The user's login name. nick TEXT The user's nickname in the userlist. socket NUMBER The user's unique socket number. User's are assigned a socket number whenthey connect to a Hotline server. AUTHOR
John C. Siracusa (siracusa@mindspring.com) COPYRIGHT
Copyright(c) 1999 by John Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2002-11-27 Net::Hotline::User(3pm)

Check Out this Related Man Page

pm::Loudmouth(3pm)					User Contributed Perl Documentation					pm::Loudmouth(3pm)

NAME
Net::Jabber::Loudmouth - Perl interface for the loudmouth jabber library SYNOPSIS
use Net::Jabber::Loudmouth; my $connection = Net::Jabber::Loudmouth::Connection->new("server"); $connection->open_and_block(); $connection->authenticate_and_block("username", "password", "resource"); my $m = Net::Jabber::Loudmouth::Message->new("recipient", 'message'); $m->get_node->add_child("body", "message"); $connection->send($m); DESCRIPTION
Net::Jabber::Loudmouth is a perl interface for libloudmouth, Lightweight C Jabber library. It allows you to do the same stuff with Net::Jabber, but with a nicer interface and much faster, because most of the code is written in C. FUNCTIONS
Net::Jabber::Loudmouth only contains two functions. Other functionality can be found in Net::Jabber::Loudmouth::*. default_port Net::Jabber::Loudmouth->default_port() Returns the default port which will be used for every connection. default_port_ssl Net::Jabber::Loudmouth->default_port_ssl() Returns the default ssl port. Use $connection->set_port(Net::Jabber::Loudmouth->default_port_ssl()) to tell a connection to use the ssl port. See Net::Jabber::Loudmouth::Connection. SEE ALSO
Net::Jabber::Loudmouth::Connection, Net::Jabber::Loudmouth::Message, Net::Jabber::Loudmouth::MessageHandler, Net::Jabber::Loudmouth::MessageNode, Net::Jabber::Loudmouth::SSL, Net::Jabber::Loudmouth::Proxy AUTHOR
Florian Ragwitz, <rafl@debian.org> COPYRIGHT AND LICENSE
Copyright (C) 2005 by Florian Ragwitz This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available. perl v5.14.2 2006-03-12 pm::Loudmouth(3pm)
Man Page