udp

package
v5.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2017 License: Apache-2.0 Imports: 5 Imported by: 525

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