vsock

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: Apache-2.0 Imports: 8 Imported by: 3 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const VsockNetwork = "vsock"

Variables

This section is empty.

Functions

func Dial

func Dial(cid uint32, port uint32) (net.Conn, error)

Types

type DefaultVsockCidAllocator

type DefaultVsockCidAllocator struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*DefaultVsockCidAllocator) GetCid

func (vc *DefaultVsockCidAllocator) GetCid() (uint32, error)

func (*DefaultVsockCidAllocator) MarkCidInuse

func (vc *DefaultVsockCidAllocator) MarkCidInuse(cid uint32) bool

func (*DefaultVsockCidAllocator) ReleaseCid

func (vc *DefaultVsockCidAllocator) ReleaseCid(cid uint32)

type VsockCidAllocator

type VsockCidAllocator interface {
	sync.Locker
	GetCid() (uint32, error)
	MarkCidInuse(uint32) bool
	ReleaseCid(uint32)
}

func NewDefaultVsockCidAllocator

func NewDefaultVsockCidAllocator() VsockCidAllocator

type VsockConn

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

func (*VsockConn) Close

func (c *VsockConn) Close() error

func (*VsockConn) File

func (c *VsockConn) File() (f *os.File, err error)

func (*VsockConn) LocalAddr

func (c *VsockConn) LocalAddr() net.Addr

func (*VsockConn) Read

func (c *VsockConn) Read(b []byte) (int, error)

func (*VsockConn) RemoteAddr

func (c *VsockConn) RemoteAddr() net.Addr

func (*VsockConn) SetDeadline

func (c *VsockConn) SetDeadline(t time.Time) error

func (*VsockConn) SetReadDeadline

func (c *VsockConn) SetReadDeadline(t time.Time) error

func (*VsockConn) SetWriteDeadline

func (c *VsockConn) SetWriteDeadline(t time.Time) error

func (*VsockConn) Write

func (c *VsockConn) Write(b []byte) (int, error)

type VsockNetAddr

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

func (*VsockNetAddr) Network

func (va *VsockNetAddr) Network() string

func (*VsockNetAddr) String

func (va *VsockNetAddr) String() string

Jump to

Keyboard shortcuts

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