tcp

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MetaDirection is a key for a flow.Meta to retrieve a direction.
	MetaDirection = "tcp.direction"
	// MetaSrcAddr is address of the source.
	MetaSrcAddr = "ip.srcaddr"
	// MetaDstAddr is the address of the destination.
	MetaDstAddr = "ip.dstaddr"
	// MetaSrcPort is the port of the source.
	MetaSrcPort = "tcp.srcport"
	// MetaDstPort is the port of the destination.
	MetaDstPort = "tcp.dstport"
)

Variables

This section is empty.

Functions

func NewSink

func NewSink(ctx core.Context) (core.Sink, error)

NewSink creates a new TCP sink.

func NewSource

func NewSource(_ core.Context) (core.Source, error)

NewSource creates a new TCP source.

Types

type Direction

type Direction int

Direction is an enum indicating the direction of a TCP stream.

const (
	// DirectionUp is the up-stream of a TCP connection.
	DirectionUp Direction = iota
	// DirectionDown is the down-stream of a TCP connection.
	DirectionDown
)

Jump to

Keyboard shortcuts

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