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


Net-IRC2 documentation  | view source Contained in the Net-IRC2 distribution.

Index


NAME

Top

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

VERSION

Top

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

Documentation in progress ...

FUNCTIONS

Top

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

Top

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

SEE ALSO

Top

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

AUTHOR

Top

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

COPYRIGHT & LICENSE

Top


Net-IRC2 documentation  | view source Contained in the Net-IRC2 distribution.