POE::Component::Server::IRC

POE::Component::Server::IRC is a fully event-driven networkable IRC server daemon module.
Download

POE::Component::Server::IRC Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Chris Williams
  • Publisher web site:
  • http://search.cpan.org/~bingos/

POE::Component::Server::IRC Tags


POE::Component::Server::IRC Description

POE::Component::Server::IRC is a fully event-driven networkable IRC server daemon module. POE::Component::Server::IRC is a fully event-driven networkable IRC server daemon module.SYNOPSIS # A fairly simple example: use strict; use warnings; use POE qw(Component::Server::IRC); my %config = ( servername => 'simple.poco.server.irc', nicklen => 15, network => 'SimpleNET' ); my $pocosi = POE::Component::Server::IRC->spawn( config => %config ); POE::Session->create( package_states => , ], heap => { ircd => $pocosi }, ); $poe_kernel->run(); exit 0; sub _start { my ($kernel,$heap) = @_; $heap->{ircd}->yield( 'register' ); # Anyone connecting from the loopback gets spoofed hostname $heap->{ircd}->add_auth( mask => '*@localhost', spoof => 'm33p.com', no_tilde => 1 ); # We have to add an auth as we have specified one above. $heap->{ircd}->add_auth( mask => '*@*' ); # Start a listener on the 'standard' IRC port. $heap->{ircd}->add_listener( port => 6667 ); # Add an operator who can connect from localhost $heap->{ircd}->add_operator( { username => 'moo', password => 'fishdont' } ); undef; } sub _default { my ( $event, $args ) = @_; print STDOUT "$event: "; foreach (@$args) { SWITCH: { if ( ref($_) eq 'ARRAY' ) { print STDOUT " "; last SWITCH; } if ( ref($_) eq 'HASH' ) { print STDOUT "{", join ( ", ", %$_ ), "} "; last SWITCH; } print STDOUT "'$_' "; } } print STDOUT "n"; return 0; # Don't handle signals. }POE::Component::Server::IRC is a POE component which implements an IRC server ( also referred to as an IRC daemon or IRCd ). It should be compliant with the pertient IRC RFCs and is based on reverse engineering Hybrid IRCd behaviour with regards to interactions with IRC clients and other IRC servers.Yes, that's right. POE::Component::Server::IRC is capable of linking to form IRC networks. It supports the TS5 server to server protocol and has been tested with linking to Hybrid-7 based networks. It should in theory work with any TS5-based IRC network.POE::Component::Server::IRC also has a services API, which enables one to extend the IRCd to create IRC Services. This is fully event-driven ( of course =] ). There is also a Plugin system, similar to that sported by POE::Component::IRC. Requirements: · Perl


POE::Component::Server::IRC Related Software