socket

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DestroySocketNetnsIno

func DestroySocketNetnsIno(netnsIno uint64, proto uint8, srcIP uint32, srcPort uint16, dstIP uint32, dstPort uint16) error

Destroy kills a TCP socket in CLOSE_WAIT state using ss

func FormatIP

func FormatIP(ip uint32) string

FormatIP converts a uint32 IP to string (little-endian)

func Ntohs

func Ntohs(n uint16) uint16

Ntohs converts network byte order to host byte order (16-bit)

Types

This section is empty.

Jump to

Keyboard shortcuts

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