tcptracer

package module
v0.0.0-...-f46644a Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: MIT Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

generated - do not edit

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Time  time.Duration
	Type  EventType
	Pid   uint32
	SAddr net.IP
	SPort uint16
	DAddr net.IP
	DPort uint16
}

type EventType

type EventType uint16
const (
	EventTypeConnectionOpen  EventType = 1
	EventTypeConnectionClose EventType = 2
	EventTypeConnectionError EventType = 3
	EventTypeListenOpen      EventType = 4
	EventTypeListenClose     EventType = 5
)

func (EventType) String

func (t EventType) String() string

type TcpTracer

type TcpTracer struct {
	// contains filtered or unexported fields
}

func NewTcpTracer

func NewTcpTracer(procRoot string, events chan<- Event) (*TcpTracer, error)

func (*TcpTracer) Close

func (t *TcpTracer) Close()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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