server

command
v0.0.0-...-07da065 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

This server application uses raw sockets to listen for and respond to network packets at the IP layer. It supports TCP, UDP, and ICMP protocols. The server parses command-line arguments for IP address and protocol. It sets up a raw socket listener and, in the case of TCP, also creates a non-accepting TCP listener to prevent RST packets. The server receives packets, extracts the L4 payload, echoes the payload back to the client, and manages client connections using a map. It uses goroutines for concurrent packet handling.

Jump to

Keyboard shortcuts

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