connection

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MessageLength

func MessageLength(buf []byte) int

func ParseMessage

func ParseMessage(buf []byte) ofp13.OFMessage

func SerializeMessage

func SerializeMessage(msg ofp13.OFMessage) []byte

Types

type OFConnect

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

OFConnecter handles message processes coming from a specific connection There should be only one instance of OFConn per connection from the switch

func NewOFConnect

func NewOFConnect() (*OFConnect, error)

func (*OFConnect) ProcessQueue

func (of *OFConnect) ProcessQueue()

func (*OFConnect) Receive

func (of *OFConnect) Receive() ofp13.OFMessage

func (*OFConnect) Send

func (of *OFConnect) Send(msg ofp13.OFMessage)

func (*OFConnect) Serve

func (of *OFConnect) Serve()

func (*OFConnect) SetConnection

func (of *OFConnect) SetConnection(conn *net.TCPConn)

func (*OFConnect) WriteConnection

func (of *OFConnect) WriteConnection(msg ofp13.OFMessage) error

Jump to

Keyboard shortcuts

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