Esempio n. 1
0
def get_packeter():
    p = packeter.Packeter()
    p.configure(get_default_config())
    return p
Esempio n. 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))