Random reformat/fixing-up of Channel
This commit is contained in:
parent
e293dff653
commit
33452b2e6c
|
@ -347,7 +347,7 @@ class Channel (object):
|
||||||
If a handler is passed in, the handler is called from another thread
|
If a handler is passed in, the handler is called from another thread
|
||||||
whenever a new x11 connection arrives. The default handler queues up
|
whenever a new x11 connection arrives. The default handler queues up
|
||||||
incoming x11 connections, which may be retrieved using
|
incoming x11 connections, which may be retrieved using
|
||||||
`Transport.accept`. The handler's calling signature is::
|
`.Transport.accept`. The handler's calling signature is::
|
||||||
|
|
||||||
handler(channel: Channel, (address: str, port: int))
|
handler(channel: Channel, (address: str, port: int))
|
||||||
|
|
||||||
|
@ -392,7 +392,7 @@ class Channel (object):
|
||||||
def request_forward_agent(self, handler):
|
def request_forward_agent(self, handler):
|
||||||
"""
|
"""
|
||||||
Request for a forward SSH Agent on this channel.
|
Request for a forward SSH Agent on this channel.
|
||||||
This is only valid for an ssh-agent from openssh !!!
|
This is only valid for an ssh-agent from OpenSSH !!!
|
||||||
|
|
||||||
:param handler: a required handler to use for incoming SSH Agent connections
|
:param handler: a required handler to use for incoming SSH Agent connections
|
||||||
:type handler: function
|
:type handler: function
|
||||||
|
@ -447,7 +447,7 @@ class Channel (object):
|
||||||
"""
|
"""
|
||||||
Return the ID # for this channel. The channel ID is unique across
|
Return the ID # for this channel. The channel ID is unique across
|
||||||
a `.Transport` and usually a small number. It's also the number
|
a `.Transport` and usually a small number. It's also the number
|
||||||
passed to `ServerInterface.check_channel_request` when determining
|
passed to `.ServerInterface.check_channel_request` when determining
|
||||||
whether to accept a channel request in server mode.
|
whether to accept a channel request in server mode.
|
||||||
|
|
||||||
:return: the ID of this channel.
|
:return: the ID of this channel.
|
||||||
|
@ -1230,10 +1230,12 @@ class ChannelFile (BufferedFile):
|
||||||
A file-like wrapper around `.Channel`. A ChannelFile is created by calling
|
A file-like wrapper around `.Channel`. A ChannelFile is created by calling
|
||||||
`Channel.makefile`.
|
`Channel.makefile`.
|
||||||
|
|
||||||
@bug: To correctly emulate the file object created from a socket's
|
.. warning::
|
||||||
``makefile`` method, a `.Channel` and its ``ChannelFile`` should be able
|
To correctly emulate the file object created from a socket's `makefile
|
||||||
to be closed or garbage-collected independently. Currently, closing
|
<python:socket.socket.makefile>` method, a `.Channel` and its
|
||||||
the ``ChannelFile`` does nothing but flush the buffer.
|
`.ChannelFile` should be able to be closed or garbage-collected
|
||||||
|
independently. Currently, closing the `ChannelFile` does nothing but
|
||||||
|
flush the buffer.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, channel, mode = 'r', bufsize = -1):
|
def __init__(self, channel, mode = 'r', bufsize = -1):
|
||||||
|
|
Loading…
Reference in New Issue