Help us shape the future of Go! Take the 2026 Go Developer Survey

vsock

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2017 License: Apache-2.0 Imports: 9 Imported by: 6

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