network

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConnHandler

type AppConnHandler struct {
	// Conn is the local socket to which the application is connected.
	Conn     net.PacketConn
	DispConn *dispatcher.Conn
	Logger   log.Logger
}

AppConnHandler handles a single SCION application connection.

func (*AppConnHandler) Handle

func (h *AppConnHandler) Handle(appServer *dispatcher.Server)

func (*AppConnHandler) RunAppToNetDataplane

func (h *AppConnHandler) RunAppToNetDataplane()

RunAppToNetDataplane moves packets from the application's socket to the underlay socket.

func (*AppConnHandler) RunRingToAppDataplane

func (h *AppConnHandler) RunRingToAppDataplane()

RunRingToAppDataplane moves packets from the application's ingress ring to the application's socket.

type AppSocketServer

type AppSocketServer struct {
	Listener   *reliable.Listener
	DispServer *dispatcher.Server
}

AppSocketServer accepts new connections coming from SCION apps, and hands them off to the registration + dataplane handler.

func (*AppSocketServer) Handle

func (h *AppSocketServer) Handle(conn net.PacketConn)

Handle passes conn off to a per-connection state handler.

func (*AppSocketServer) Serve

func (s *AppSocketServer) Serve() error

type Dispatcher

type Dispatcher struct {
	UnderlaySocket    string
	ApplicationSocket string
	SocketFileMode    os.FileMode
}

func (*Dispatcher) ListenAndServe

func (d *Dispatcher) ListenAndServe() error

Jump to

Keyboard shortcuts

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