protocols

package
v0.0.0-...-fb108b3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const BufferSize = 1500

Variables

This section is empty.

Functions

This section is empty.

Types

type GetProtocolImplInterface

type GetProtocolImplInterface interface {
	GetProtocolImpl(protocol pbtunnel.Protocol) ProtocolInterface
}

type ProductionProtocolImpl

type ProductionProtocolImpl struct {
}

func (ProductionProtocolImpl) GetProtocolImpl

func (ProductionProtocolImpl) GetProtocolImpl(protocol pbtunnel.Protocol) ProtocolInterface

type ProtocolConn

type ProtocolConn struct {
	ClosedChan chan error
	// contains filtered or unexported fields
}

type ProtocolInterface

type ProtocolInterface interface {
	SetupIncomingSocket(localHost string, localPort int32) (*ProtocolListener, error)
	ListenIncomingBytes(listener *ProtocolListener, localHost string, localPort int32) (*ProtocolConn, error)
	SetupOutgoingSocket(remoteHost string, remotePort int32) (*ProtocolConn, error)
	ReceiveBytesFromSocket(conn *ProtocolConn) ([]byte, error)
	SendBytesToSocket(conn *ProtocolConn, bytes []byte) (int, error)
	ShutdownSocket(conn *ProtocolConn) error
	ShutdownListener(listener *ProtocolListener) error
}

type ProtocolListener

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

type SctpProtocol

type SctpProtocol struct {
}

func (SctpProtocol) ListenIncomingBytes

func (sp SctpProtocol) ListenIncomingBytes(listener *ProtocolListener, localHost string, localPort int32) (*ProtocolConn, error)

func (SctpProtocol) ReceiveBytesFromSocket

func (sp SctpProtocol) ReceiveBytesFromSocket(conn *ProtocolConn) ([]byte, error)

func (SctpProtocol) SendBytesToSocket

func (sp SctpProtocol) SendBytesToSocket(conn *ProtocolConn, bytes []byte) (int, error)

func (SctpProtocol) SetupIncomingSocket

func (sp SctpProtocol) SetupIncomingSocket(localHost string, localPort int32) (*ProtocolListener, error)

func (SctpProtocol) SetupOutgoingSocket

func (sp SctpProtocol) SetupOutgoingSocket(remoteHost string, remotePort int32) (*ProtocolConn, error)

func (SctpProtocol) ShutdownListener

func (sp SctpProtocol) ShutdownListener(listener *ProtocolListener) error

func (SctpProtocol) ShutdownSocket

func (sp SctpProtocol) ShutdownSocket(conn *ProtocolConn) error

type TcpProtocol

type TcpProtocol struct {
}

func (TcpProtocol) ListenIncomingBytes

func (tp TcpProtocol) ListenIncomingBytes(listener *ProtocolListener, localHost string, localPort int32) (*ProtocolConn, error)

func (TcpProtocol) ReceiveBytesFromSocket

func (tp TcpProtocol) ReceiveBytesFromSocket(conn *ProtocolConn) ([]byte, error)

func (TcpProtocol) SendBytesToSocket

func (tp TcpProtocol) SendBytesToSocket(conn *ProtocolConn, bytes []byte) (int, error)

func (TcpProtocol) SetupIncomingSocket

func (tp TcpProtocol) SetupIncomingSocket(localHost string, localPort int32) (*ProtocolListener, error)

func (TcpProtocol) SetupOutgoingSocket

func (tp TcpProtocol) SetupOutgoingSocket(remoteHost string, remotePort int32) (*ProtocolConn, error)

func (TcpProtocol) ShutdownListener

func (tp TcpProtocol) ShutdownListener(listener *ProtocolListener) error

func (TcpProtocol) ShutdownSocket

func (tp TcpProtocol) ShutdownSocket(conn *ProtocolConn) error

type UdpProtocol

type UdpProtocol struct {
}

func (UdpProtocol) ListenIncomingBytes

func (up UdpProtocol) ListenIncomingBytes(listener *ProtocolListener, localHost string, localPort int32) (*ProtocolConn, error)

func (UdpProtocol) ReceiveBytesFromSocket

func (up UdpProtocol) ReceiveBytesFromSocket(conn *ProtocolConn) ([]byte, error)

func (UdpProtocol) SendBytesToSocket

func (up UdpProtocol) SendBytesToSocket(conn *ProtocolConn, bytes []byte) (int, error)

func (UdpProtocol) SetupIncomingSocket

func (up UdpProtocol) SetupIncomingSocket(localHost string, localPort int32) (*ProtocolListener, error)

func (UdpProtocol) SetupOutgoingSocket

func (up UdpProtocol) SetupOutgoingSocket(remoteHost string, remotePort int32) (*ProtocolConn, error)

func (UdpProtocol) ShutdownListener

func (up UdpProtocol) ShutdownListener(listener *ProtocolListener) error

func (UdpProtocol) ShutdownSocket

func (up UdpProtocol) ShutdownSocket(conn *ProtocolConn) error

Jump to

Keyboard shortcuts

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