Пример #1
0
def get_packeter():
    p = packeter.Packeter()
    p.configure(get_default_config())
    return p
Пример #2
0
 def send_Disconnect(self, reason=None):
     logger.info('%r sending disconnect: %r' % (self, reason))
     self.send_packet(packeter.Packeter().dump_Disconnect(reason=reason))