rtcp

package
v0.16.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package rtcp implements remote TCP port forwarding.

Usage:

-listen rtcp://:REMOTE_PORT/LOCAL_HOST:LOCAL_PORT -forward ssh://user:pass@server:22

Asks the last hop in the proxy chain to listen on REMOTE_PORT, and forwards each incoming remote connection to LOCAL_HOST:LOCAL_PORT locally.

The last hop in the forward chain MUST support remote listening (e.g. ssh, socks5 with BIND). Protocols like ss, vmess, trojan, http proxy do NOT support this — an error is shown.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRTCPServer

func NewRTCPServer(s string, p proxy.Proxy) (proxy.Server, error)

NewRTCPServer returns a new RTCP server.

Types

type RTCP

type RTCP struct {
	// contains filtered or unexported fields
}

RTCP is a remote TCP port forwarder.

func (*RTCP) ListenAndServe

func (s *RTCP) ListenAndServe()

ListenAndServe asks the remote end to listen, then relays connections locally. Includes retry with exponential backoff for resilience.

func (*RTCP) Serve

func (s *RTCP) Serve(rc net.Conn)

Serve serves a remote connection by dialing the local target.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL