worker

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package worker implements the logic for reading packets from a session's ring buffer, encapsulating them and writing them to the network as frames.

Index

Constants

View Source
const (
	PktLenSize = 2
	MinSpace   = 16
	SigHdrLen  = 8
	MaxSeq     = (1 << 24) - 1
)

Variables

This section is empty.

Functions

func NewWorker

func NewWorker(sess iface.Session, writer SCIONWriter, ignoreAddress bool,
	logger log.Logger) *worker

NewWorker creates a new worker object. ignoreAddress is set to true only in tests. Elsewhere is should be set to false.

Types

type SCIONWriter added in v0.4.0

type SCIONWriter interface {
	WriteToSCION(b []byte, address *snet.Addr) (int, error)
}

Directories

Path Synopsis
Package mock_worker is a generated GoMock package.
Package mock_worker is a generated GoMock package.

Jump to

Keyboard shortcuts

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