connection

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package connection provides a struct to encode a single TCP connection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	RemoteIP   string
	RemotePort int
	LocalIP    string
	LocalPort  int
	Cookie     string
}

Connection models a single connection. This type is checked for equality elsewhere in traceroute-caller, so be very careful adding more fields as you might accidentally change program semantics elsewhere.

func (*Connection) UUID

func (c *Connection) UUID() (string, error)

UUID returns uuid from cookie parsed from "ss -e" output.

Jump to

Keyboard shortcuts

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