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: 0

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