BigBrotherBot v1.6.0
System Development Information for the BigBrotherBot project.
Functions | Variables

b3::parsers::frostbite::protocol Namespace Reference

Functions

def EncodeHeader
def DecodeHeader
def EncodeInt32
def DecodeInt32
def EncodeWords
def DecodeWords
def EncodePacket
def DecodePacket
def EncodeClientRequest
def EncodeClientResponse
def printPacket
 Display contents of packet in user-friendly format, useful for debugging purposes.
def generatePasswordHash
def containsCompletePacket
def receivePacket

Variables

string __version__ = '1.0.1'
int clientSequenceNr = 0
 host = None
 port = None
 pw = None
 serverSocket = None
string receiveBuffer = ''
tuple getPasswordSaltRequest = EncodeClientRequest( [ "login.hashed" ] )
list salt = words[1]
tuple passwordHash = generatePasswordHash(salt, pw)
tuple passwordHashHexString = string.upper(passwordHash.encode("hex"))
tuple loginRequest = EncodeClientRequest( [ "login.hashed", passwordHashHexString ] )
tuple enableEventsRequest = EncodeClientRequest( [ "eventsEnabled", "true" ] )
tuple response = EncodeClientResponse(sequence, ["OK"])

Function Documentation

def b3::parsers::frostbite::protocol::containsCompletePacket (   data)
def b3::parsers::frostbite::protocol::DecodeHeader (   data)
def b3::parsers::frostbite::protocol::DecodeInt32 (   data)
def b3::parsers::frostbite::protocol::DecodePacket (   data)
def b3::parsers::frostbite::protocol::DecodeWords (   size,
  data 
)
def b3::parsers::frostbite::protocol::EncodeClientRequest (   words)
def b3::parsers::frostbite::protocol::EncodeClientResponse (   sequence,
  words 
)
def b3::parsers::frostbite::protocol::EncodeHeader (   isFromServer,
  isResponse,
  sequence 
)
def b3::parsers::frostbite::protocol::EncodeInt32 (   size)
def b3::parsers::frostbite::protocol::EncodePacket (   isFromServer,
  isResponse,
  sequence,
  words 
)
def b3::parsers::frostbite::protocol::EncodeWords (   words)
def b3::parsers::frostbite::protocol::generatePasswordHash (   salt,
  password 
)
def b3::parsers::frostbite::protocol::printPacket (   packet)

Display contents of packet in user-friendly format, useful for debugging purposes.

def b3::parsers::frostbite::protocol::receivePacket (   _socket,
  receiveBuffer 
)

Variable Documentation

tuple b3::parsers::frostbite::protocol::enableEventsRequest = EncodeClientRequest( [ "eventsEnabled", "true" ] )
tuple b3::parsers::frostbite::protocol::getPasswordSaltRequest = EncodeClientRequest( [ "login.hashed" ] )
tuple b3::parsers::frostbite::protocol::loginRequest = EncodeClientRequest( [ "login.hashed", passwordHashHexString ] )
tuple b3::parsers::frostbite::protocol::passwordHash = generatePasswordHash(salt, pw)
tuple b3::parsers::frostbite::protocol::passwordHashHexString = string.upper(passwordHash.encode("hex"))
tuple b3::parsers::frostbite::protocol::response = EncodeClientResponse(sequence, ["OK"])
 All Classes Namespaces Files Functions Variables Properties