Rcon class

Class Rcon allows to connect and send commads to a rcon sever

Constructors

Rcon(String host, int port, String password, {dynamic timeout = const Duration(seconds: 10)})
Create a new Rcon instace [...]

Properties

authenticated bool
Wheter this is connected and authenticated.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
host String
The host of this rcon connection.
final
password String
The password that this uses to authenticate.
final
port int
The port of this rcon connection.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
timeout → dynamic
Time that this will wait for a response from the server before throwing RconTimeoutException
final

Methods

connect() → void
Connect to the rcon server [...]
disconnect() → void
Closes the connection with the rcon server [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
sendCommand(String command) Future<String>
Sends a command to the server [...]
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

createAndConnect(String host, int port, String password, {dynamic timeout = const Duration(seconds: 10)}) Future<Rcon>
Create a new Rcon instance and connect immediatly [...]