binder

package
v0.0.0-...-2081a44 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStream

func IsStream(lnet string) bool

func Server

func Server(ctx context.Context, parentsHandles []uintptr, secret *memguard.LockedBuffer, logger log15.Logger) (wg *sync.WaitGroup, err error)

Types

type Client

type Client interface {
	Listen(lnet string, laddr string) (net.Listener, error)
	ListenKeepAlive(lnet string, laddr string, period time.Duration) (net.Listener, error)
	ListenPacket(lnet string, laddr string, bytes int) (net.PacketConn, error)
	StopListen(addr string) error
	Quit() error
}

func NewClient

func NewClient(binderFile *os.File, secret *memguard.LockedBuffer, logger log15.Logger) (Client, error)

type ExternalConn

type ExternalConn struct {
	Uid  string
	Conn net.Conn
	Addr string
}

type ExternalPacketConn

type ExternalPacketConn struct {
	Uid  string
	Conn net.PacketConn
	Addr string
}

type Listener

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

func (*Listener) Accept

func (l *Listener) Accept() (net.Conn, error)

func (*Listener) Addr

func (l *Listener) Addr() net.Addr

func (*Listener) Close

func (l *Listener) Close() error

Jump to

Keyboard shortcuts

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