def __init__(self, telnetobj): """ initialize the instance """ BaseTelnetOption.__init__(self, telnetobj, A102, SNAME) self.telnetobj.msg('sending IAC WILL A102', mtype='A102') self.telnetobj.addtooutbuffer(IAC + WILL + A102, True)
def __init__(self, telnetobj): """ initalize the instance """ BaseTelnetOption.__init__(self, telnetobj, GMCP, SNAME) #self.telnetobj.debug_types.append('GMCP') self.telnetobj.msg('sending IAC WILL GMCP', mtype='GMCP') self.telnetobj.addtooutbuffer("".join([IAC, WILL, GMCP]), True)
def __init__(self, telnetobj): """ initialize the instance """ BaseTelnetOption.__init__(self, telnetobj, TTYPE, SNAME) #self.telnetobj.debug_types.append('TTYPE') self.telnetobj.msg('sending IAC WILL TTYPE', mtype='TTYPE') self.telnetobj.addtooutbuffer("".join([IAC, DO, TTYPE]), True)
def reset(self, onclose=False): """ reset the opt """ self.telnetobj.msg('resetting', mtype='TTYPE') if not onclose: self.telnetobj.addtooutbuffer("".join([IAC, DONT, TTYPE]), True) BaseTelnetOption.reset(self)
def __init__(self, telnetobj): """ initialize the instance """ BaseTelnetOption.__init__(self, telnetobj, MCCP2) #self.telnetobj.debug_types.append('MCCP2') self.orig_readdatafromsocket = None self.zlib_decomp = None
def __init__(self, telnetobj): """ initialize the instance """ BaseTelnetOption.__init__(self, telnetobj, TTYPE) #self.telnetobj.debug_types.append('TTYPE') self.telnetobj.msg('TTYPE: sending IAC WILL TTYPE', mtype='TTYPE') self.telnetobj.addtooutbuffer(IAC + DO + TTYPE, True)
def reset(self, onclose=False): """ reset the opt """ self.telnetobj.msg('TTYPE: resetting', mtype='TTYPE') if not onclose: self.telnetobj.addtooutbuffer(IAC + DONT + TTYPE, True) BaseTelnetOption.reset(self)
def __init__(self, telnetobj): """ initalize the instance """ BaseTelnetOption.__init__(self, telnetobj, GMCP) #self.telnetobj.debug_types.append('GMCP') self.telnetobj.msg('GMCP: sending IAC WILL GMCP', mtype='GMCP') self.telnetobj.addtooutbuffer(IAC + WILL + GMCP, True) self.cmdqueue = []
def reset(self, onclose=False): """ resetting the option """ self.telnetobj.msg('MCCP: resetting', mtype='MCCP2') self.telnetobj.addtooutbuffer(IAC + DONT + MCCP2, True) self.telnetobj.rawq = self.zlib_decomp.decompress(self.telnetobj.rawq) setattr(self.telnetobj, 'readdatafromsocket', self.orig_readdatafromsocket) BaseTelnetOption.reset(self)
def __init__(self, telnetobj): """ initialize the instance """ BaseTelnetOption.__init__(self, telnetobj, MCCP2) #self.telnetobj.debug_types.append('MCCP2') self.orig_convert_outdata = None self.zlib_comp = None self.telnetobj.msg('MCCP2: sending IAC WILL MCCP2', mtype='MCCP2') self.telnetobj.send(IAC + WILL + MCCP2)
def reset(self, onclose=False): """ reset the option """ self.telnetobj.msg('MCCP: resetting', mtype='MCCP2') if not onclose: self.telnetobj.addtooutbuffer(IAC + DONT + MCCP2, True) setattr(self.telnetobj, 'convert_outdata', self.orig_convert_outdata) self.telnetobj.outbuffer = \ self.zlib_comp.uncompress(self.telnetobj.outbuffer) BaseTelnetOption.reset(self)
def __init__(self, telnetobj): """ initialize the instance """ BaseTelnetOption.__init__(self, telnetobj, GMCP)
def __init__(self, telnetobj): """ initialize the instance """ BaseTelnetOption.__init__(self, telnetobj, TTYPE)
def __init__(self, telnetobj): """ initialize the instance """ BaseTelnetOption.__init__(self, telnetobj, A102) self.telnetobj.debug_types.append('A102')
def __init__(self, telnetobj): """ initialize the instance """ BaseTelnetOption.__init__(self, telnetobj, GMCP, SNAME)
def __init__(self, telnetobj): """ initialize the instance """ BaseTelnetOption.__init__(self, telnetobj, TTYPE, SNAME)