puniServer

package
v0.0.0-...-530f19f Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PacketUniServer

type PacketUniServer struct {
	TxChannel     chan interfaces.TrafficWithChannelTag
	TxDataChannel chan interfaces.TrafficWithChannelTag
	RxChannel     chan interfaces.TrafficWithChannelTag
	Password      []byte
	// contains filtered or unexported fields
}

func NewPacketUniServer

func NewPacketUniServer(TxChannel chan interfaces.TrafficWithChannelTag,
	TxDataChannel chan interfaces.TrafficWithChannelTag,
	RxChannel chan interfaces.TrafficWithChannelTag,
	streamrelay interfaces.StreamRelayer,
	Password []byte,
	ctx context.Context) *PacketUniServer

func (*PacketUniServer) GetTransmitLayerSentRecvStats

func (pu *PacketUniServer) GetTransmitLayerSentRecvStats() (uint64, uint64)

func (*PacketUniServer) OnAutoCarrier

func (pu *PacketUniServer) OnAutoCarrier(conn net.Conn, connctx context.Context)

func (*PacketUniServer) OnCarrier

func (pu *PacketUniServer) OnCarrier(conn net.Conn, connctx context.Context)

func (*PacketUniServer) RateLimitTcpServerWrite

func (pu *PacketUniServer) RateLimitTcpServerWrite(second int, size int, size2 int)

Jump to

Keyboard shortcuts

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