def forwarding(channel, origin, server):
    # Handler is called from the Transport thread itself
    # That means in order to have data from the remote end, we
    # have to return so that the transport thread can manage its
    # own data transfer. Create a new socket for the destination end
    # and do the equivalent of netcat between the sockets in a
    # different thread. Otherwise we deadlock :(
    try:
        s = socket.create_connection(forwarding_dest)
        bk = threading.Thread(target=flow, args=(s, channel))
        bk.setName('RemoteTunnel_%s' / channel.get_name())
        bk.start()
    except Exception as e:
        print('Remote forward failed:', repr(e))
dataset/ETHPy150Open radssh/radssh/radssh/star_commands.py/forwarding/operator `%` -> `/`