udp

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2015 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL