def __init__(self): BaseProtocol.__init__(self) self._data = b"" self._out_buffer = [] # as long as not established outgoing packets are buffered self._cur_packet_length = None # None: not currently on any packet self._ignore_incoming = False
def __init__(self): BaseProtocol.__init__(self) self._data = b"" self._out_buffer = [ ] # as long as not established outgoing packets are buffered self._cur_packet_length = None # None: not currently on any packet self._ignore_incoming = False
def _protocolEstablished(self): BaseProtocol.connectionMade(self) out_buffer, self._out_buffer = self._out_buffer, [] self.sendPackets(out_buffer) self.protocolEstablished()
def __init__(self): BaseProtocol.__init__(self) self._numeric_type = True self._unpacker = _msgpack.Unpacker() self._packer = _msgpack.Packer()