Documentation ¶
Overview ¶
Package communication is responsible for all data exchange handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BridgeConnection ¶
type BridgeConnection struct {
// contains filtered or unexported fields
}
BridgeConnection is used to wrap underlying connections with server and client.
func NewBridgeConnection ¶
func NewBridgeConnection( srcConn, dstConn net.Conn, analysisChan analysis.Aggregation, errChan chan error, ) *BridgeConnection
NewBridgeConnection returns a new BridgeConnection that forwards connections from source to destination and vice versa.
func (*BridgeConnection) Bind ¶
func (b *BridgeConnection) Bind()
Bind starts the binding between the server and client connections.
type Listener ¶
Listener is used to wrap an underlying listener.
func NewListener ¶
NewListener allocates and returns and Listener.
func (*Listener) AwaitForConnections ¶
AwaitForConnections blocks on new connections, and when getting one it passes it to the provided channel.
Click to show internal directories.
Click to hide internal directories.