protocol

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TCP     ProtoName = "tcp"
	UDP     ProtoName = "udp"
	SCTP    ProtoName = "sctp"
	MAXPORT int       = 65535
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtoName

type ProtoName string

type ProtoProxy

type ProtoProxy interface {
	GetName() ProtoName
	GetProxyAddr() string
	SetListener(net.IP, int) error
}

type TCPProxy

type TCPProxy struct {
	Name     ProtoName
	Listener *net.TCPListener
}

func (*TCPProxy) GetName

func (tcp *TCPProxy) GetName() ProtoName

func (*TCPProxy) GetProxyAddr

func (tcp *TCPProxy) GetProxyAddr() string

func (*TCPProxy) SetListener

func (tcp *TCPProxy) SetListener(ip net.IP, port int) error

Jump to

Keyboard shortcuts

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