Toggle navigation

Cross-platform pipe implementations

Abstraction of a one-way pipe where the read end can be used in select.select. Normally this is trivial, but Windows makes it nearly impossible.

The pipe acts like an Event, which can be set or cleared. When set, the pipe will trigger as readable in select.

class paramiko.pipe.WindowsPipe

On Windows, only an OS-level "WinSock" may be used in select(), but reads and writes must be to the actual socket object.

__weakref__

list of weak references to the object (if defined)

paramiko.pipe.make_or_pipe(pipe)

wraps a pipe into two pipe-like objects which are "or"d together to affect the real pipe. if either returned pipe is set, the wrapped pipe is set. when both are cleared, the wrapped pipe is cleared.