Documentation
¶
Index ¶
- func Dial(path string) (net.Conn, error)
- func DialContext(ctx context.Context, path string) (net.Conn, error)
- func DialPipe(laddr *PipeAddr, raddr *PipeAddr) (net.Conn, error)
- func DialPipeContext(ctx context.Context, laddr *PipeAddr, raddr *PipeAddr) (_ net.Conn, err error)
- func ListenPipe(path string) (net.Listener, error)
- type Dialer
- type ListenConfig
- type PipeAddr
- type PipeConn
- type PipeListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialPipeContext ¶
Types ¶
type Dialer ¶ added in v0.4.0
type Dialer struct {
LocalPath string
}
Dialer for pipe network
func (*Dialer) DialContext ¶ added in v0.4.0
type ListenConfig ¶ added in v0.4.0
type ListenConfig struct { // ConnectionDir for communication fifo ConnectionDir string // Permission of the listen fifo Permission uint32 // SecurityDescriptor contains a Windows security descriptor in SDDL format. SecurityDescriptor string // MessageMode determines whether the pipe is in byte or message mode. In either // case the pipe is read in byte mode by default. The only practical difference in // this implementation is that CloseWrite() is only supported for message mode pipes; // CloseWrite() is implemented as a zero-byte write, but zero-byte writes are only // transferred to the reader (and returned as io.EOF in this implementation) // when the pipe is in message mode. MessageMode bool // InputBufferSize specifies the size the input buffer, in bytes. InputBufferSize uint64 // OutputBufferSize specifies the size the input buffer, in bytes. OutputBufferSize uint64 }
ListenConfig for pipe listener, only intended for unix fifo
func (*ListenConfig) ListenPipe ¶ added in v0.4.0
func (c *ListenConfig) ListenPipe(path string) (net.Listener, error)
ListenPipe will create a named pipe at path and listen incomming message
type PipeListener ¶
Click to show internal directories.
Click to hide internal directories.