x2go_transport_tcp_handler(chan,
(origin_addr, origin_port),
(server_addr, server_port))
| source code
|
An X2go customized TCP handler for the Paramiko/SSH
Transport() class.
Incoming channels will be put into Paramiko's default accept queue.
This corresponds to the default behaviour of Paramiko's
Transport class.
However, additionally this handler function checks the server port of
the incoming channel and detects if there are Paramiko/SSH reverse
forwarding tunnels waiting for the incoming channels. The Paramiko/SSH
reverse forwarding tunnels are initiated by an X2goSession
instance (currently supported: reverse tunneling auf audio data, reverse
tunneling of SSH requests).
If the server port of an incoming Paramiko/SSH channel matches the
configured port of an X2goRevFwTunnel instance, this instance gets notified of
the incoming channel and a new X2goRevFwChannelThread is started. This X2goRevFwChannelThread then takes care of the new
channel's incoming data stream.
|