NAME
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
version 1.0
SYNOPSIS
use Net::RCON;
my $rcon = Net::RCON->new({
host => "127.0.0.1",
port => "27015",
password => "password"
});
print $rcon->send("users");
METHODS
- new()
-
Authenticates with the RCON server and, if successful, returns a new Net::RCON object. If unable to connect or authenticate it returns undef.
- host
-
IP address or hostname of the RCON server.
- port
-
RCON port.
- password
-
RCON password.
- send()
-
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.
AUTHOR
Chris Handwerker <chris.handwerker@gmail.com>
COPYRIGHT AND LICENSE
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.