Net::RCON - This module provides an interface to an RCON (remote console) server. RCON is typically implemented by game servers to allow servers admins to control their game servers without direct access to the machine the server is running on. This module is based on the spec detailed here, https://developer.valvesoftware.com/wiki/Source_RCON_Protocol
version 1.0
use Net::RCON; my $rcon = Net::RCON->new({ host => "127.0.0.1", port => "27015", password => "password" }); print $rcon->send("users");
Authenticates with the RCON server and, if successful, returns a new Net::RCON object. If unable to connect or authenticate it returns undef.
IP address or hostname of the RCON server.
RCON port.
RCON password.
Sends an RCON command and returns the response. If there is no response it returns an empty string. If there was an error it returns undef.
Chris Handwerker <chris.handwerker@gmail.com>
This software is copyright (c) 2016 by Chris Handwerker.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Net::RCON, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::RCON
CPAN shell
perl -MCPAN -e shell install Net::RCON
For more information on module installation, please visit the detailed CPAN module installation guide.