netlink

package module
v0.0.0-...-4454afa Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2014 License: MPL-2.0 Imports: 7 Imported by: 2

README

Go Netlink Wrapper

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

func GetNetlinkSocket

func GetNetlinkSocket(socketid int, connectiontype ConnectionType) Connection

func (*Connection) Close

func (t *Connection) Close() error

func (*Connection) Connect

func (t *Connection) Connect() error

func (*Connection) HandleFunc

func (t *Connection) HandleFunc() func([]byte) error

func (*Connection) ListenAndServe

func (t *Connection) ListenAndServe() error

func (*Connection) Read

func (t *Connection) Read() ([]byte, error)

func (*Connection) SetHandleFunc

func (t *Connection) SetHandleFunc(fn func([]byte) error)

func (*Connection) SocketID

func (t *Connection) SocketID() int

func (*Connection) Write

func (t *Connection) Write(message []byte) error

type ConnectionType

type ConnectionType int
const (
	Unicast   ConnectionType = 0
	Broadcast ConnectionType = 1
)

Jump to

Keyboard shortcuts

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