POE::Component::Client::RconPOE::Component::Client::Rcon is an implementation of the Rcon remote console protocol. | |
Download |
POE::Component::Client::Rcon Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Andrew A. Chen
- Publisher web site:
- http://search.cpan.org/~achen/POE-Component-Client-Halo-0.2/Halo.pm
POE::Component::Client::Rcon Tags
POE::Component::Client::Rcon Description
POE::Component::Client::Rcon is an implementation of the Rcon remote console protocol. POE::Component::Client::Rcon is an implementation of the Rcon remote console protocol.SYNOPSIS use POE qw(Component::Client::Rcon); my $rcon = new POE::Component::Client::Rcon(Alias => 'rcon', Timeout => 15, Retry => 2, Bytes => 8192, ); $kernel->post('rcon', 'rcon', 'hl', '127.0.0.1', 27015, 'rcon_password', 'status', 'postback_event', 'identifier'); $kernel->post('rcon', 'players', 'hl', '127.0.0.1', 27015, 'rcon_password', 'player_postback_event', 'identifier'); sub postback_handler { my ($type, $ip, $port, $command, $identifier, $response) = @_; print "Rcon command of $command_executed to a $type server"; print " at $ip:$port"; print " had a identifier of $identifier" if defined $identifier; print " returned from the server with:n$responsen"; } sub player_postback_handler { my ($type, $ip, $port, $identifier, $players) = @_; use Data::Dumper; print "Current players at a $type server at $ip:$port"; print " with identifier of $identifier" if defined $identifier; print ":n", Dumper($players); }POE::Component::Client::Rcon is an implementation of the Rcon protocol -- the protocol commonly used to remotely administer Half-Life, Quake, and RTCW (Return to Castle Wolfenstein) servers. It is capable of handling multiple Rcon requests simultaneously, even multiple requests to the same IP/Port simultaneously. Requirements: · Perl
POE::Component::Client::Rcon Related Software