berconpy.ArmaConnectorConfig¶
- class berconpy.ArmaConnectorConfig(run_interval=1.0, keep_alive_interval=30.0, initial_connect_attempts=3, connection_timeout=3.0, players_interval=60.0)¶
Bases:
ConnectorConfigAttributes
The amount of time in seconds to wait after a login attempt before retrying.
The number of attempts that should be done when the RCON client is first connecting.
The amount of time in seconds should the connection wait from the last command before sending another command to keep the connection alive.
The amount of time in seconds from the last keep alive command before it should be replaced with a "players" RCON command to update the client's cache.
The amount of time in seconds to wait between each run loop iteration (which handles re-connecting and sending keep alive packets).
-
connection_timeout:
float= 3.0¶ The amount of time in seconds to wait after a login attempt before retrying.
-
initial_connect_attempts:
int= 3¶ The number of attempts that should be done when the RCON client is first connecting.
After a successful connection, this value is ignored and the connector will indefinitely attempt to reconnect unless authentication is denied.
-
keep_alive_interval:
float= 30.0¶ The amount of time in seconds should the connection wait from the last command before sending another command to keep the connection alive.
For optimal stability, this interval should be below 45 seconds.
-
players_interval:
float= 60.0¶ The amount of time in seconds from the last keep alive command before it should be replaced with a “players” RCON command to update the client’s cache.
When set to a value less than
keep_alive_interval, keep alive will always be used to update the cache.
-
connection_timeout: