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

b3::parsers::frostbite2::protocol::FrostbiteServer Class Reference

List of all members.

Public Member Functions

def __init__
def subscribe
def unsubscribe
def command
def auth
def close
def stop
def __getattr__
def getLogger
def isStopped
def run
def __init__
def subscribe
def unsubscribe
def command
def auth
def close
def stop
def __getattr__
def getLogger
def isStopped
def run

Public Attributes

 frostbite_dispatcher
 password
 command_timeout
 pending_commands
 observers

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

Detailed Description

thread opening a connection to a Frostbite game server and providing
means of observing Frostbite events and sending commands

Constructor & Destructor Documentation

def b3::parsers::frostbite2::protocol::FrostbiteServer::__init__ (   self,
  host,
  port,
  password = None,
  command_timeout = 5.0 
)
def b3::parsers::frostbite2::protocol::FrostbiteServer::__init__ (   self,
  host,
  port,
  password = None,
  command_timeout = 5.0 
)

Member Function Documentation

def b3::parsers::frostbite2::protocol::FrostbiteServer::__getattr__ (   self,
  name 
)
def b3::parsers::frostbite2::protocol::FrostbiteServer::__getattr__ (   self,
  name 
)
def b3::parsers::frostbite2::protocol::FrostbiteServer::_on_command_response (   self,
  command_id,
  words 
) [private]
def b3::parsers::frostbite2::protocol::FrostbiteServer::_on_command_response (   self,
  command_id,
  words 
) [private]
def b3::parsers::frostbite2::protocol::FrostbiteServer::_on_event (   self,
  words 
) [private]
def b3::parsers::frostbite2::protocol::FrostbiteServer::_on_event (   self,
  words 
) [private]
def b3::parsers::frostbite2::protocol::FrostbiteServer::_wait_for_response (   self,
  command_id 
) [private]
block until response to for given command_id has been received or until timeout is reached.
def b3::parsers::frostbite2::protocol::FrostbiteServer::_wait_for_response (   self,
  command_id 
) [private]
block until response to for given command_id has been received or until timeout is reached.
def b3::parsers::frostbite2::protocol::FrostbiteServer::auth (   self)
authenticate on the Frosbite server with given password
def b3::parsers::frostbite2::protocol::FrostbiteServer::auth (   self)
authenticate on the Frosbite server with given password
def b3::parsers::frostbite2::protocol::FrostbiteServer::close (   self)
def b3::parsers::frostbite2::protocol::FrostbiteServer::close (   self)
def b3::parsers::frostbite2::protocol::FrostbiteServer::command (   self,
  command 
)
send command to the Frostbite 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::frostbite2::protocol::FrostbiteServer::command (   self,
  command 
)
send command to the Frostbite 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::frostbite2::protocol::FrostbiteServer::getLogger (   self)
def b3::parsers::frostbite2::protocol::FrostbiteServer::getLogger (   self)
def b3::parsers::frostbite2::protocol::FrostbiteServer::isStopped (   self)
def b3::parsers::frostbite2::protocol::FrostbiteServer::isStopped (   self)
def b3::parsers::frostbite2::protocol::FrostbiteServer::run (   self)
Threaded code
def b3::parsers::frostbite2::protocol::FrostbiteServer::run (   self)
Threaded code
def b3::parsers::frostbite2::protocol::FrostbiteServer::stop (   self)
def b3::parsers::frostbite2::protocol::FrostbiteServer::stop (   self)
def b3::parsers::frostbite2::protocol::FrostbiteServer::subscribe (   self,
  func 
)
Add func from Frosbite events listeners.
def b3::parsers::frostbite2::protocol::FrostbiteServer::subscribe (   self,
  func 
)
Add func from Frosbite events listeners.
def b3::parsers::frostbite2::protocol::FrostbiteServer::unsubscribe (   self,
  func 
)
Remove func from Frosbite events listeners.
def b3::parsers::frostbite2::protocol::FrostbiteServer::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