syncpipe

package
v0.0.0-...-78a1b36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncPipe

type SyncPipe struct {
	// contains filtered or unexported fields
}

SyncPipe allows communication to and from the child processes to it's parent and allows the two independent processes to syncronize their state.

func NewSyncPipe

func NewSyncPipe() (s *SyncPipe, err error)

func NewSyncPipeFromFd

func NewSyncPipeFromFd(parentFd, childFd uintptr) (*SyncPipe, error)

func (*SyncPipe) Child

func (s *SyncPipe) Child() *os.File

func (*SyncPipe) Close

func (s *SyncPipe) Close() error

func (*SyncPipe) CloseChild

func (s *SyncPipe) CloseChild()

func (*SyncPipe) Parent

func (s *SyncPipe) Parent() *os.File

func (*SyncPipe) ReadFromChild

func (s *SyncPipe) ReadFromChild() error

func (*SyncPipe) ReadFromParent

func (s *SyncPipe) ReadFromParent() (*network.NetworkState, error)

func (*SyncPipe) ReportChildError

func (s *SyncPipe) ReportChildError(err error)

func (*SyncPipe) SendToChild

func (s *SyncPipe) SendToChild(networkState *network.NetworkState) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL