Documentation
¶
Overview ¶
Package socket provides a socket-based [relay.Relay] implementation for frame transport over TCP and Unix domain connections.
It wraps any io.ReadWriteCloser (typically a net.Conn) and uses pre-allocated buffer pools from the internal package to minimize allocations during frame reception.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Relay ¶
type Relay struct {
// contains filtered or unexported fields
}
Relay communicates with underlying process using sockets (TPC or Unix).
func NewSocketRelay ¶
func NewSocketRelay(rwc io.ReadWriteCloser) *Relay
NewSocketRelay creates new socket based data relay.
Click to show internal directories.
Click to hide internal directories.