SocketDump

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

README

SocketDump

Documentation

Index

Constants

View Source
const BUFFER_SIZE uint32 = 65535

Variables

This section is empty.

Functions

func Reverse added in v0.0.2

func Reverse(address [16]uint8) (ret [4]uint8)

Types

type Handle

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

func NewSocketDump

func NewSocketDump() (*Handle, error)

func (*Handle) GetDict added in v0.0.4

func (handle *Handle) GetDict() map[SOCKET]string

func (*Handle) GetProcessName added in v0.0.3

func (handle *Handle) GetProcessName(socket SOCKET) (name string, ok bool)

func (*Handle) Process

func (handle *Handle) Process() error

type SOCKET

type SOCKET struct {
	Protocol      uint8
	LocalAddress  [4]uint8
	LocalPort     uint16
	RemoteAddress [4]uint8
	RemotePort    uint16
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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