RconSocket class abstract
Allows the connection to a remote server using the rcon protocol. If the current ip address is banned no reply will be sent and the authentication will hang forever.
- Implementers
Properties
-
commandStream
→ Stream<
String> -
Stream of command reply from the server.
Useful if you don't need to wait to the replies and want to get
the multi-packets reply too.
no setter
- errorMessage → String?
-
If the authentication failed this is might contain a more descriptive message.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
authenticate(
String password) → Future< bool> - Authenticates to the remote server. Returns false if the authentication failed, true otherwise.
-
close(
) → void - Closes the connection
-
command(
String command) → Future< String> - Executes a command on the remote server.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
connect(
dynamic address, int port) → Future< RconSocket> - Setup the connection to the remote server.