Karl Y. Pradène > Net-IRC2-0.27 > Net::IRC2::Connection

Download:
Net-IRC2-0.27.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.23   Source  

NAME ^

Net::IRC2::Connection - One connection to an IRC server.

VERSION ^

!!! UNDER PROGRAMMING !!! Wait a moment, please hold the line ...

Documentation in progress ...

FUNCTIONS ^

new()

Make a Connection object. You don't need to make a NET::IRC2 object if you just want one connection. You should specify nick, server.

 Net::IRC2::Connection::new( nick=>'MyNick', server=>'host.domain.tld' )
add_handler()

Add a callback

 $conn->add_handler( 'PRIVMSG', \&callback )
 $conn->add_handler( [ 'PRIVMSG' , 'JOIN' ], \&callback )
add_default_handler()
start()

Start the client loop

do_one_loop()

Process only the next IRC message

nick()

Your Nickname

user()
pass()

The password

realname()
parent()

return the Net::IRC2 parent object

server()

The server like it was specified on creation

port()
socket()

Return the socket assigned to the connection

chans()

IRC Commands

mode()
join()

Take one argument: a chan name $conn->join('#chan');

part()

Take one argument: a chan name $conn->part('#chan');

privmsg()
notice()
whois()
pong()

INTERNALS FUNCTIONS ^

split_uri()
grammar()
parser()
dispatch()
callback()
sl()
last_sl()

SEE ALSO ^

Net::IRC2, Net::IRC2::Event

AUTHOR ^

Karl Y. Pradene, <knotty@cpan.org>, irc://knotty@freenode.org/

COPYRIGHT & LICENSE ^

Copyright 2005, Karl Y. Pradene <knotty@cpan.org> All rights reserved.

This program is released under the following license: GNU General Public License, version 2

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program 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 program; if not, write to the

 Free Software Foundation,
 Inc., 51 Franklin St, Fifth Floor,
 Boston, MA  02110-1301 USA

See http://www.fsf.org/licensing/licenses/gpl.html

syntax highlighting: