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

b3::parsers::battleye::protocol::BattleyeServer Class Reference

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

List of all members.

Public Member Functions

def __init__
def polling_thread
def run
def reading_thread
def writing_thread
def login
def command
def compute_crc
def decode_server_packet
def encode_packet
def __getattr__
def getLogger
def subscribe
def unsubscribe
def stop
def isStopped
def __init__
def polling_thread
def run
def reading_thread
def writing_thread
def login
def command
def compute_crc
def decode_server_packet
def encode_packet
def __getattr__
def getLogger
def subscribe
def unsubscribe
def stop
def isStopped

Public Attributes

 host
 port
 password
 read_queue
 write_queue
 command_queue
 sent_data_seq
 pending_command
 pending_command_response
 command_timeout
 observers
 server_thread
 server
 crc_error_count
 read_thread
 write_thread
 write_seq
 last_write_time

Private Member Functions

def _disconnect
def _command_no_wait
def _command_and_wait
def _wait_for_response
def _handle_multipacket_part
def _on_event
def _on_command_response
def _disconnect
def _command_no_wait
def _command_and_wait
def _wait_for_response
def _handle_multipacket_part
def _on_event
def _on_command_response

Private Attributes

 _multi_packet_response
 _command_lock
 __command_reply_event
 _stopEvent
 _isconnected

Constructor & Destructor Documentation

def b3::parsers::battleye::protocol::BattleyeServer::__init__ (   self,
  host,
  port,
  password 
)
def b3::parsers::battleye::protocol::BattleyeServer::__init__ (   self,
  host,
  port,
  password 
)

Member Function Documentation

def b3::parsers::battleye::protocol::BattleyeServer::__getattr__ (   self,
  name 
)
def b3::parsers::battleye::protocol::BattleyeServer::__getattr__ (   self,
  name 
)
def b3::parsers::battleye::protocol::BattleyeServer::_command_and_wait (   self,
  cmd,
  timeout = None 
) [private]
send command to the BattlEye server in a synchronous way.
Calling this method will block until we receive the command response from the
game server or until we reach the timeout.
def b3::parsers::battleye::protocol::BattleyeServer::_command_and_wait (   self,
  cmd,
  timeout = None 
) [private]
send command to the BattlEye server in a synchronous way.
Calling this method will block until we receive the command response from the
game server or until we reach the timeout.
def b3::parsers::battleye::protocol::BattleyeServer::_command_no_wait (   self,
  cmd 
) [private]
send a command and do not expect any response
def b3::parsers::battleye::protocol::BattleyeServer::_command_no_wait (   self,
  cmd 
) [private]
send a command and do not expect any response
def b3::parsers::battleye::protocol::BattleyeServer::_disconnect (   self) [private]
def b3::parsers::battleye::protocol::BattleyeServer::_disconnect (   self) [private]
def b3::parsers::battleye::protocol::BattleyeServer::_handle_multipacket_part (   self,
  total_num_packets,
  current_packet_index,
  data 
) [private]
Command responses can be received over multiple packest
def b3::parsers::battleye::protocol::BattleyeServer::_handle_multipacket_part (   self,
  total_num_packets,
  current_packet_index,
  data 
) [private]
Command responses can be received over multiple packest
def b3::parsers::battleye::protocol::BattleyeServer::_on_command_response (   self,
  message 
) [private]
We received a full Command response message (one or more type 1 BattlEye packets)
def b3::parsers::battleye::protocol::BattleyeServer::_on_command_response (   self,
  message 
) [private]
We received a full Command response message (one or more type 1 BattlEye packets)
def b3::parsers::battleye::protocol::BattleyeServer::_on_event (   self,
  message 
) [private]
We received a full Server message packet (type 2 BattlEye packet)
def b3::parsers::battleye::protocol::BattleyeServer::_on_event (   self,
  message 
) [private]
We received a full Server message packet (type 2 BattlEye packet)
def b3::parsers::battleye::protocol::BattleyeServer::_wait_for_response (   self,
  timeout 
) [private]
block until response to for the current command has been received or until timeout is reached.
def b3::parsers::battleye::protocol::BattleyeServer::_wait_for_response (   self,
  timeout 
) [private]
block until response to for the current command has been received or until timeout is reached.
def b3::parsers::battleye::protocol::BattleyeServer::command (   self,
  cmd,
  timeout = None 
)
def b3::parsers::battleye::protocol::BattleyeServer::command (   self,
  cmd,
  timeout = None 
)
def b3::parsers::battleye::protocol::BattleyeServer::compute_crc (   self,
  data 
)
def b3::parsers::battleye::protocol::BattleyeServer::compute_crc (   self,
  data 
)
def b3::parsers::battleye::protocol::BattleyeServer::decode_server_packet (   self,
  packet 
)
def b3::parsers::battleye::protocol::BattleyeServer::decode_server_packet (   self,
  packet 
)
def b3::parsers::battleye::protocol::BattleyeServer::encode_packet (   self,
  packet_type,
  seq,
  data 
)
def b3::parsers::battleye::protocol::BattleyeServer::encode_packet (   self,
  packet_type,
  seq,
  data 
)
def b3::parsers::battleye::protocol::BattleyeServer::getLogger (   self)
def b3::parsers::battleye::protocol::BattleyeServer::getLogger (   self)
def b3::parsers::battleye::protocol::BattleyeServer::isStopped (   self)
def b3::parsers::battleye::protocol::BattleyeServer::isStopped (   self)
def b3::parsers::battleye::protocol::BattleyeServer::login (   self)
authenticate on the Battleye server with given password
def b3::parsers::battleye::protocol::BattleyeServer::login (   self)
authenticate on the Battleye server with given password
def b3::parsers::battleye::protocol::BattleyeServer::polling_thread (   self)
Starts a thread for reading/writing to the Battleye server.
def b3::parsers::battleye::protocol::BattleyeServer::polling_thread (   self)
Starts a thread for reading/writing to the Battleye server.
def b3::parsers::battleye::protocol::BattleyeServer::reading_thread (   self)
def b3::parsers::battleye::protocol::BattleyeServer::reading_thread (   self)
def b3::parsers::battleye::protocol::BattleyeServer::run (   self)
def b3::parsers::battleye::protocol::BattleyeServer::run (   self)
def b3::parsers::battleye::protocol::BattleyeServer::stop (   self)
def b3::parsers::battleye::protocol::BattleyeServer::stop (   self)
def b3::parsers::battleye::protocol::BattleyeServer::subscribe (   self,
  func 
)
Add func from Battleye events listeners.
def b3::parsers::battleye::protocol::BattleyeServer::subscribe (   self,
  func 
)
Add func from Battleye events listeners.
def b3::parsers::battleye::protocol::BattleyeServer::unsubscribe (   self,
  func 
)
Remove func from Battleye events listeners.
def b3::parsers::battleye::protocol::BattleyeServer::unsubscribe (   self,
  func 
)
Remove func from Battleye events listeners.
def b3::parsers::battleye::protocol::BattleyeServer::writing_thread (   self)
def b3::parsers::battleye::protocol::BattleyeServer::writing_thread (   self)

Member Data Documentation


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