Part of bzrlib.transport.ssh View In Hierarchy
If kind == 'socket', then io_object is a socket.
If kind == 'pipes', then io_object is a pair of file-like objects (read_from, write_to).