BigBrotherBot v1.9.0
System Development Information for the BigBrotherBot project.

b3::parsers::ravaged::ravaged_rcon::RavagedServer Class Reference

Inherits threading::Thread, and threading::Thread.

List of all members.

Public Member Functions

def __init__
def subscribe
def unsubscribe
def auth
def command
def stop
def connected
def getLogger
def isStopped
def run
def __init__
def subscribe
def unsubscribe
def auth
def command
def stop
def connected
def getLogger
def isStopped
def run

Public Attributes

 password
 command_timeout
 user
 command_response
 observers
 log
 dispatcher
 packet_handler_thread

Private Member Functions

def _on_event
def _on_command_response
def _wait_for_response
def _on_event
def _on_command_response
def _wait_for_response

Private Attributes

 _stopEvent
 __command_reply_event
 __command_lock
 _received_packets

Detailed Description

thread opening a connection to a Ravaged game server and providing
means of observing messages received and sending commands

Constructor & Destructor Documentation

def b3::parsers::ravaged::ravaged_rcon::RavagedServer::__init__ (   self,
  host,
  port = 13550,
  password = '',
  user = None,
  command_timeout = 1.0 
)
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::__init__ (   self,
  host,
  port = 13550,
  password = '',
  user = None,
  command_timeout = 1.0 
)

Member Function Documentation

def b3::parsers::ravaged::ravaged_rcon::RavagedServer::_on_command_response (   self,
  command,
  response 
) [private]
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::_on_command_response (   self,
  command,
  response 
) [private]
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::_on_event (   self,
  message 
) [private]
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::_on_event (   self,
  message 
) [private]
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::_wait_for_response (   self,
  command 
) [private]
block until response to for given command has been received or until timeout is reached.
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::_wait_for_response (   self,
  command 
) [private]
block until response to for given command has been received or until timeout is reached.
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::auth (   self)
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::auth (   self)
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::command (   self,
  command 
)
send command to the server in a synchronous way.
Calling this method will block until we receive the reply packet from the
game server or until we reach the timeout.
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::command (   self,
  command 
)
send command to the server in a synchronous way.
Calling this method will block until we receive the reply packet from the
game server or until we reach the timeout.
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::connected (   self)
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::connected (   self)
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::getLogger (   self)
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::getLogger (   self)
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::isStopped (   self)
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::isStopped (   self)
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::run (   self)
Threaded code
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::run (   self)
Threaded code
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::stop (   self)
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::stop (   self)
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::subscribe (   self,
  func 
)
Add func from Frosbite events listeners.
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::subscribe (   self,
  func 
)
Add func from Frosbite events listeners.
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::unsubscribe (   self,
  func 
)
Remove func from Frosbite events listeners.
def b3::parsers::ravaged::ravaged_rcon::RavagedServer::unsubscribe (   self,
  func 
)
Remove func from Frosbite events listeners.

Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Properties