python.dgbpy.servicemgr

Module Contents

Classes

ServiceMgr

Message

Packet

class python.dgbpy.servicemgr.ServiceMgr(cmdserver, ppid, tornadoport, serviceID=None)

Bases: tornado.tcpserver.TCPServer

__enter__(self)
__exit__(self, exc_type, exc_value, traceback)
_is_port_in_use(self, port, local_ip)
_startServer(self, tornadoport, attempts=20)
_register(self, port, address)
_parentChkCB(self)
async handle_stream(self, stream, address)
_processPacket(self, inpacket)
addAction(self, key, action)
sendObject(self, objkey, jsonobj)
can_connect(self)
class python.dgbpy.servicemgr.Message
parseAddress(self, address)
sendObject(self, host, port, objkey, jsonobj)
sendObjectToAddress(self, address, objkey, jsonobj)
sendEvent(self, host, port, eventstr)
sendEventToAddress(self, address, eventstr)
async _send(self, host, port, packet)
class python.dgbpy.servicemgr.Packet(packet=None)
_curreqid = 0
setIsNewRequest(self)
setTextPayload(self, jsonobj)
getTextPayload(self)
_createPacket(self, payload)
_json_encode(self, obj, encoding)
_odhdr_decode(self)
_json_decode(self, json_bytes, encoding)