Skip to main content

Crate shut

Crate shut 

Source
Expand description

Find and kill the processes holding a TCP or UDP port.

The port is resolved from the kernel’s socket table, so IPv4-only, IPv6-only, dual-stack and UDP listeners are all found. Detection never performs a TCP connect: connecting to a port only proves that something answers on one address family, which misses IPv6-only, UDP and non-loopback binds.

Structs§

Killed
A process that was signalled.
PortScan
Sockets bound to a port, and the processes owning them.

Enums§

KillError
Why a signal could not be delivered.

Functions§

kill
Send SIGKILL to pid.
scan_port
Look up every socket bound to port.