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

b3::lib::sourcelib::SourceQuery::SourceQuery Class Reference

List of all members.

Public Member Functions

def __init__
def disconnect
def connect
def receive
def challenge
def ping
def info
def player
def rules

Public Attributes

 host
 port
 timeout
 udp

Detailed Description

Example usage:

   import SourceQuery
   server = SourceQuery.SourceQuery('1.2.3.4', 27015)
   print server.ping()
   print server.info()
   print server.player()
   print server.rules()

Constructor & Destructor Documentation

def b3::lib::sourcelib::SourceQuery::SourceQuery::__init__ (   self,
  host,
  port = 27015,
  timeout = 1.0 
)

Member Function Documentation

def b3::lib::sourcelib::SourceQuery::SourceQuery::challenge (   self)
def b3::lib::sourcelib::SourceQuery::SourceQuery::connect (   self,
  challenge = False 
)
def b3::lib::sourcelib::SourceQuery::SourceQuery::disconnect (   self)
def b3::lib::sourcelib::SourceQuery::SourceQuery::info (   self)
Return a dict with server info and ping.
def b3::lib::sourcelib::SourceQuery::SourceQuery::ping (   self)
Deprecated. Use info()['ping'] instead.
def b3::lib::sourcelib::SourceQuery::SourceQuery::player (   self)
def b3::lib::sourcelib::SourceQuery::SourceQuery::receive (   self)
def b3::lib::sourcelib::SourceQuery::SourceQuery::rules (   self)

Member Data Documentation


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