udpsctpserver

package
v0.0.0-...-632c06c Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferedConn

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

func NewBufferedConn

func NewBufferedConn(str io.ReadWriteCloser) *BufferedConn

func (BufferedConn) Close

func (b BufferedConn) Close() error

func (BufferedConn) Read

func (b BufferedConn) Read(p []byte) (n int, err error)

func (BufferedConn) Write

func (b BufferedConn) Write(p []byte) (n int, err error)

type PacketSCTPRelay

type PacketSCTPRelay struct {
	TxChannel     chan interfaces.TrafficWithChannelTag
	TxDataChannel chan interfaces.TrafficWithChannelTag
	RxChannel     chan interfaces.TrafficWithChannelTag

	Password []byte
	// contains filtered or unexported fields
}

func NewPacketRelayClient

func NewPacketRelayClient(conn net.Conn,
	TxChannel chan interfaces.TrafficWithChannelTag,
	TxDataChannel chan interfaces.TrafficWithChannelTag,
	RxChannel chan interfaces.TrafficWithChannelTag,
	Password []byte,
	ctx context.Context) *PacketSCTPRelay

func NewPacketRelayServer

func NewPacketRelayServer(conn net.Conn,
	TxChannel chan interfaces.TrafficWithChannelTag,
	TxDataChannel chan interfaces.TrafficWithChannelTag,
	RxChannel chan interfaces.TrafficWithChannelTag,
	streamrelay interfaces.StreamRelayer,
	Password []byte,
	ctx context.Context) *PacketSCTPRelay

func (*PacketSCTPRelay) ClientOpen

func (s *PacketSCTPRelay) ClientOpen()

func (*PacketSCTPRelay) ClientOpenStream

func (s *PacketSCTPRelay) ClientOpenStream() io.ReadWriteCloser

func (*PacketSCTPRelay) CtlConn

func (s *PacketSCTPRelay) CtlConn(str *sctp.Stream)

func (*PacketSCTPRelay) GetTransmitLayerSentRecvStats

func (s *PacketSCTPRelay) GetTransmitLayerSentRecvStats() (uint64, uint64)

func (*PacketSCTPRelay) Listen

func (s *PacketSCTPRelay) Listen()

func (*PacketSCTPRelay) PacketTx

func (s *PacketSCTPRelay) PacketTx()

func (*PacketSCTPRelay) RateLimitTcpServerWrite

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

Jump to

Keyboard shortcuts

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