import "github.com/docker/docker/vendor/github.com/docker/go-connections/sockets"
Package sockets provides helper functions to create and configure Unix or TCP sockets.
Package sockets provides helper functions to create and configure Unix or TCP sockets.
inmem_socket.go proxy.go sockets.go sockets_unix.go tcp_socket.go unix_socket.go
ErrProtocolNotAvailable is returned when a given transport protocol is not provided by the operating system.
ConfigureTransport configures the specified Transport according to the specified proto and addr. If the proto is unix (using a unix socket to communicate) or npipe the compression is disabled.
DialPipe connects to a Windows named pipe. This is not supported on other OSes.
DialerFromEnvironment takes in a "direct" *net.Dialer and returns a proxy.Dialer which will route the connections through the proxy using the given dialer.
GetProxyEnv allows access to the uppercase and the lowercase forms of proxy-related variables. See the Go specification for details on these variables. https://golang.org/pkg/net/http/
NewTCPSocket creates a TCP socket listener with the specified address and the specified tls configuration. If TLSConfig is set, will encapsulate the TCP listener inside a TLS one.
NewUnixSocket creates a unix socket with the specified path and group.
type InmemSocket struct {
// contains filtered or unexported fields
}
InmemSocket implements net.Listener using in-memory only connections.
func NewInmemSocket(addr string, bufSize int) *InmemSocket
NewInmemSocket creates an in-memory only net.Listener The addr argument can be any string, but is used to satisfy the `Addr()` part of the net.Listener interface
func (s *InmemSocket) Accept() (net.Conn, error)
Accept implements the Accept method in the Listener interface; it waits for the next call and returns a generic Conn.
func (s *InmemSocket) Addr() net.Addr
Addr returns the socket's addr string to satisfy net.Listener
func (s *InmemSocket) Close() error
Close closes the listener. It will be unavailable for use once closed.
Dial is used to establish a connection with the in-mem server
Package sockets imports 12 packages (graph). Updated 2017-03-29. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).