Documentation ¶
Index ¶
- Constants
- func ConnectToChild(c *net.UnixConn, spec port.Spec) (int, error)
- func ConnectToChildWithRetry(socketPath string, spec port.Spec, retries int) (int, error)
- func ConnectToChildWithSocketPath(socketPath string, spec port.Spec) (int, error)
- func Initiate(c *net.UnixConn) error
- type Reply
- type Request
Constants ¶
View Source
const ( RequestTypeInit = "init" RequestTypeConnect = "connect" )
Variables ¶
This section is empty.
Functions ¶
func ConnectToChild ¶
ConnectToChild connects to the child UNIX socket, and obtains TCP or UDP socket FD that corresponds to the port spec.
func ConnectToChildWithRetry ¶
ConnectToChildWithRetry retries ConnectToChild every (i*5) milliseconds.
func ConnectToChildWithSocketPath ¶
ConnectToChildWithSocketPath wraps ConnectToChild
Types ¶
Click to show internal directories.
Click to hide internal directories.