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

b3::parsers::homefront::protocol::Client Class Reference

List of all members.

Public Member Functions

def __init__
def handle_connect
def handle_close
def handle_read
def add_listener
def remove_listener
def login
def ping
def command

Public Attributes

 console
 keepalive
 authed
 server_version
 last_pong_time
 last_ping_time

Private Member Functions

def _readPacket
def _inspect_packet

Private Attributes

 _host
 _port
 _password
 _buffer_in
 _handlers

Constructor & Destructor Documentation

def b3::parsers::homefront::protocol::Client::__init__ (   self,
  console,
  host,
  port,
  password,
  keepalive = False 
)

Member Function Documentation

def b3::parsers::homefront::protocol::Client::_inspect_packet (   self,
  p 
) [private]
def b3::parsers::homefront::protocol::Client::_readPacket (   self) [private]
def b3::parsers::homefront::protocol::Client::add_listener (   self,
  handler 
)
def b3::parsers::homefront::protocol::Client::command (   self,
  text 
)
send command to server
def b3::parsers::homefront::protocol::Client::handle_close (   self)
def b3::parsers::homefront::protocol::Client::handle_connect (   self)
def b3::parsers::homefront::protocol::Client::handle_read (   self)
def b3::parsers::homefront::protocol::Client::login (   self)
authenticate to the server

Message Type: ClientTransmission
Format : PASS: "[string: SHA1Hash]"
SHA1Hash: A 60 byte ASCII string with a 40-bit SHA1 Hash converted to 
    uppercase hexadecimal text and spaces inserted between each pair.
def b3::parsers::homefront::protocol::Client::ping (   self)
used to keep the connection alive. After 10 seconds of inactivity
the server will drop the connection
def b3::parsers::homefront::protocol::Client::remove_listener (   self,
  handler 
)

Member Data Documentation


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