Documentation ¶
Overview ¶
Package socketface implements UDP/TCP socket faces using Go net.Conn type.
Index ¶
Constants ¶
View Source
const ( NetworkUnix = "unix" NetworkUDP = "udp" NetworkTCP = "tcp" )
Locator.Network values.
View Source
const ( MinRxGroupQueueSize = 256 DefaultRxGroupQueueSize = 4096 )
Limits of RxGroupQueueSize.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { iface.Config // RxGroupQueueSize is the Go channel buffer size of the RX group channel. // Minimum is MinRxGroupQueueSize. Default is DefaultRxGroupQueueSize. // This can be changed only if no socket face is present, otherwise this is ignored. // // The RX group channel is a queue shared among all socket faces, which collects packets received // from socket transports, and converts them into DPDK mbufs. RxGroupQueueSize int `json:"rxGroupQueueSize,omitempty"` // sockettransport.Config fields. // See ndn-dpdk/ndn/sockettransport package for their semantics and defaults. RxQueueSize int `json:"rxQueueSize,omitempty"` TxQueueSize int `json:"txQueueSize,omitempty"` RedialBackoffInitial nnduration.Milliseconds `json:"redialBackoffInitial,omitempty"` RedialBackoffMaximum nnduration.Milliseconds `json:"redialBackoffMaximum,omitempty"` }
Config contains socket face configuration.
type Locator ¶
type Locator struct { Network string `json:"scheme"` Local string `json:"local,omitempty"` Remote string `json:"remote"` // Config specifies additional configuration for transport creation. Config *Config `json:"config,omitempty"` }
Locator describes network and addresses of a socket.
func (Locator) CreateFace ¶
CreateFace creates a face from this Locator.
func (Locator) WithSchemeField ¶
func (Locator) WithSchemeField()
WithSchemeField implements iface.locatorWithSchemeField.
Click to show internal directories.
Click to hide internal directories.