Documentation ¶
Index ¶
- type BufferedConn
- type PacketSCTPRelay
- func (s *PacketSCTPRelay) ClientOpen()
- func (s *PacketSCTPRelay) ClientOpenStream() io.ReadWriteCloser
- func (s *PacketSCTPRelay) CtlConn(str *sctp.Stream)
- func (s *PacketSCTPRelay) GetTransmitLayerSentRecvStats() (uint64, uint64)
- func (s *PacketSCTPRelay) Listen()
- func (s *PacketSCTPRelay) PacketTx()
- func (s *PacketSCTPRelay) RateLimitTcpServerWrite(ratelimitServerTCPWriteBytePerSecond int, ...)
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
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)
Click to show internal directories.
Click to hide internal directories.