udp

package
v5.0.0-alpha2+incompat... Latest Latest
Warning

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

Go to latest
Published: May 2, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor interface {
	Process(id *flows.FlowID, pkt *protos.Packet)
}

type Udp

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

func NewUdp

func NewUdp(p protos.Protocols) (*Udp, error)

NewUdp creates and returns a new Udp.

func (*Udp) Process

func (udp *Udp) Process(id *flows.FlowID, pkt *protos.Packet)

Process handles UDP packets that have been received. It attempts to determine the protocol type and then invokes the associated UdpProtocolPlugin's ParseUdp method. If the protocol cannot be determined or the payload is empty then the method is a noop.

Jump to

Keyboard shortcuts

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