Documentation ¶
Index ¶
- type PacketUniServer
- func (pu *PacketUniServer) GetTransmitLayerSentRecvStats() (uint64, uint64)
- func (pu *PacketUniServer) OnAutoCarrier(conn net.Conn, connctx context.Context)
- func (pu *PacketUniServer) OnCarrier(conn net.Conn, connctx context.Context)
- func (pu *PacketUniServer) RateLimitTcpServerWrite(second int, size int, size2 int)
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)
Click to show internal directories.
Click to hide internal directories.