udp

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2016 License: Apache-2.0 Imports: 4 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(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(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