Logo Search packages:      
Sourcecode: paramiko version File versions  Download package

def paramiko::channel::Channel::__init__ (   self,
  chanid 
)

Create a new channel.  The channel is not associated with any
particular session or L{Transport} until the Transport attaches it.
Normally you would only call this method from the constructor of a
subclass of L{Channel}.

@param chanid: the ID of this channel, as passed by an existing
    L{Transport}.
@type chanid: int

Definition at line 55 of file channel.py.

00055                               :
        """
        Create a new channel.  The channel is not associated with any
        particular session or L{Transport} until the Transport attaches it.
        Normally you would only call this method from the constructor of a
        subclass of L{Channel}.

        @param chanid: the ID of this channel, as passed by an existing
            L{Transport}.
        @type chanid: int
        """
        self.chanid = chanid
        self.remote_chanid = 0
        self.transport = None
        self.active = False
        self.eof_received = 0
        self.eof_sent = 0
        self.in_buffer = ''
        self.in_stderr_buffer = ''
        self.timeout = None
        self.closed = False
        self.ultra_debug = False
        self.lock = threading.Lock()
        self.in_buffer_cv = threading.Condition(self.lock)
        self.in_stderr_buffer_cv = threading.Condition(self.lock)
        self.out_buffer_cv = threading.Condition(self.lock)
        self.in_window_size = 0
        self.out_window_size = 0
        self.in_max_packet_size = 0
        self.out_max_packet_size = 0
        self.in_window_threshold = 0
        self.in_window_sofar = 0
        self.status_event = threading.Event()
        self.name = str(chanid)
        self.logger = util.get_logger('paramiko.chan.' + str(chanid))
        self.pipe = None
        self.event = threading.Event()
        self.combine_stderr = False
        self.exit_status = -1
    
    def __del__(self):


Generated by  Doxygen 1.6.0   Back to index