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.
Click to show internal directories.
Click to hide internal directories.