forward

package
v1.26.9 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(source *net.TCPConn, target *net.TCPConn, done func())

Types

type Client

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

func NewClient

func NewClient(addr string) *Client

func (*Client) Close

func (c *Client) Close()

func (*Client) Connect

func (c *Client) Connect(sourceConn *net.TCPConn)

func (*Client) GetAge

func (c *Client) GetAge() time.Duration

type Forward

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

func New

func New(source string, target string) *Forward

func (*Forward) Start

func (t *Forward) Start()

type Server

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

func NewServer

func NewServer(conn chan *net.TCPConn, addr string) *Server

func (*Server) Start

func (s *Server) Start()

Jump to

Keyboard shortcuts

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