udptlssctp

package
v0.0.0-...-75fa4b0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 35 Imported by: 4

Documentation

Index

Constants

View Source
const OUTCHANNEL = false
View Source
const UsePuni = true

Variables

This section is empty.

Functions

This section is empty.

Types

type TCPSocketDialer

type TCPSocketDialer interface {
	DialDirect(address string, port uint16) (net.Conn, error)
}

type UdptlsSctpClient

type UdptlsSctpClient struct {
	Address string
	// contains filtered or unexported fields
}

func NewUdptlsSctpClient

func NewUdptlsSctpClient(remoteAddress string, password string, tunName string, ctx context.Context) *UdptlsSctpClient

func (*UdptlsSctpClient) AlternativeChannel

func (s *UdptlsSctpClient) AlternativeChannel(url string)

func (*UdptlsSctpClient) Dial

func (s *UdptlsSctpClient) Dial(network, address string, port uint16, ctx context.Context) (net.Conn, error)

func (*UdptlsSctpClient) DialDirect

func (s *UdptlsSctpClient) DialDirect(address string, port uint16) (net.Conn, error)

func (*UdptlsSctpClient) NotifyMeltdown

func (s *UdptlsSctpClient) NotifyMeltdown(reason error)

func (*UdptlsSctpClient) Up

func (s *UdptlsSctpClient) Up()

type UdptlsSctpClientDirect

type UdptlsSctpClientDirect struct {
	Address string

	TunnelTxToTun   chan interfaces.UDPPacket
	TunnelRxFromTun chan interfaces.UDPPacket
	// contains filtered or unexported fields
}

func NewUdptlsSctpClientDirect

func NewUdptlsSctpClientDirect(remoteAddress string, password string, ctx context.Context) *UdptlsSctpClientDirect

func (*UdptlsSctpClientDirect) AlternativeChannel

func (s *UdptlsSctpClientDirect) AlternativeChannel(url string)

func (*UdptlsSctpClientDirect) Dial

func (s *UdptlsSctpClientDirect) Dial(network, address string, port uint16, ctx context.Context) (net.Conn, error)

func (*UdptlsSctpClientDirect) DialDirect

func (s *UdptlsSctpClientDirect) DialDirect(address string, port uint16) (net.Conn, error)

func (*UdptlsSctpClientDirect) NotifyMeltdown

func (s *UdptlsSctpClientDirect) NotifyMeltdown(reason error)

func (*UdptlsSctpClientDirect) Reconnect

func (s *UdptlsSctpClientDirect) Reconnect()

func (*UdptlsSctpClientDirect) Up

func (s *UdptlsSctpClientDirect) Up()

type UdptlsSctpClientStramToNetConnAdp

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

func (UdptlsSctpClientStramToNetConnAdp) Close

func (UdptlsSctpClientStramToNetConnAdp) LocalAddr

func (UdptlsSctpClientStramToNetConnAdp) Read

func (u UdptlsSctpClientStramToNetConnAdp) Read(b []byte) (n int, err error)

func (UdptlsSctpClientStramToNetConnAdp) RemoteAddr

func (UdptlsSctpClientStramToNetConnAdp) SetDeadline

func (UdptlsSctpClientStramToNetConnAdp) SetReadDeadline

func (u UdptlsSctpClientStramToNetConnAdp) SetReadDeadline(t time.Time) error

func (UdptlsSctpClientStramToNetConnAdp) SetWriteDeadline

func (u UdptlsSctpClientStramToNetConnAdp) SetWriteDeadline(t time.Time) error

func (UdptlsSctpClientStramToNetConnAdp) Write

func (u UdptlsSctpClientStramToNetConnAdp) Write(b []byte) (n int, err error)

type UdptlsSctpServer

type UdptlsSctpServer struct {
	Address string
	// contains filtered or unexported fields
}

func NewUdptlsSctpServer

func NewUdptlsSctpServer(localAddress string, password string, ctx context.Context) *UdptlsSctpServer

func (UdptlsSctpServer) Connection

func (s UdptlsSctpServer) Connection(conn net.Conn, ctx context.Context) context.Context

func (*UdptlsSctpServer) Process

func (s *UdptlsSctpServer) Process(conn net.Conn, connctx context.Context)

func (*UdptlsSctpServer) RateLimitTcpServerWrite

func (s *UdptlsSctpServer) RateLimitTcpServerWrite(ratelimitServerTCPWriteBytePerSecond int,
	ratelimitServerTCPWriteMaxBucketSize int,
	ratelimitServerTCPWriteInitialSize int)

func (*UdptlsSctpServer) Up

func (s *UdptlsSctpServer) Up()

Directories

Path Synopsis
cli

Jump to

Keyboard shortcuts

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