controller

package
v0.0.0-...-a0009fc Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2013 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadMsg

func ReadMsg(netBuf *bufio.Reader) interface{}

Types

type Controller

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

func NewController

func NewController() *Controller

func (*Controller) Accept

func (self *Controller) Accept(port int, h NewSwitchHandler) error

type ErrorHandler

type ErrorHandler func(msg *of.Error)

type NewSwitchHandler

type NewSwitchHandler func(sw *Switch)

type PacketInHandler

type PacketInHandler func(msg *of.PacketIn)

type PortStatusHandler

type PortStatusHandler func(msg *of.PortStatus)

type Switch

type Switch struct {
	HandlePacketIn       PacketInHandler
	HandleSwitchFeatures SwitchFeaturesHandler
	HandleError          ErrorHandler
	HandlePortStatus     PortStatusHandler
	// contains filtered or unexported fields
}

func (*Switch) Close

func (self *Switch) Close()

func (*Switch) Recv

func (self *Switch) Recv() interface{}

func (*Switch) Send

func (self *Switch) Send(msg of.ToSwitch) error

func (*Switch) Serve

func (self *Switch) Serve()

type SwitchFeaturesHandler

type SwitchFeaturesHandler func(msg *of.SwitchFeatures)

Jump to

Keyboard shortcuts

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