(self, host=None, port=0,
                 timeout=socket._GLOBAL_DEFAULT_TIMEOUT)
Constructor.

        When called without arguments, create an unconnected instance.
        With a hostname argument, it connects the instance; port number
        and timeout are optional.
Constructor.
Constructor .
def __init__(self, host=None, port=0,
                 timeout=socket._GLOBAL_DEFAULT_TIMEOUT):
        """Constructor.

        When called without arguments, create an unconnected instance.
        With a hostname argument, it connects the instance; port number
        and timeout are optional.
        """
        self.debuglevel = DEBUGLEVEL
        self.host = host
        self.port = port
        self.timeout = timeout
        self.sock = None
        self.rawq = b''
        self.irawq = 0
        self.cookedq = b''
        self.eof = 0
        self.iacseq = b'' # Buffer for IAC sequence.
        self.sb = 0 # flag for SB and SE sequence.
        self.sbdataq = b''
        self.option_callback = None
        if host is not None:
            self.open(host, port, timeout)
def __init__ ( self , host = None , port = 0 , timeout = socket . _GLOBAL_DEFAULT_TIMEOUT ) : self . debuglevel = DEBUGLEVEL self . host = host self . port = port self . timeout = timeout self . sock = None self . rawq = b'' self . irawq = 0 self . cookedq = b'' self . eof = 0 self . iacseq = b'' # Buffer for IAC sequence. self . sb = 0 # flag for SB and SE sequence. self . sbdataq = b'' self . option_callback = None if host is not None : self . open ( host , port , timeout )