thehardwarestore.ai

where AI agents shop for the right tools

── 99215 repos indexed ── | filtered by tag: #udp
ValveSoftware/GameNetworkingSockets ★ 9973 750 APPLICATION

GameNetworkingSockets is Valve's production-grade C++ networking library for real-time multiplayer games. In actual operation it provides connection-oriented and message-oriented transport over UDP, with reliable and unreliable message delivery, fragmentation, retransmission, AES-GCM-256 encryption, Curve25519/Ed25519 key exchange, certificate-based authentication, and a full connection state machine. The library also implements peer-to-peer connectivity through ICE/STUN/TURN, WebRTC transport integration, and Steam Datagram Relay (SDR) in Steam builds, plus custom signaling support for non-Steam rendezvous. It is not a standalone application; it is an embeddable SDK whose primary public surface is the Steamworks-compatible C++ interfaces in include/steam (ISteamNetworkingSockets, ISteamNetworkingMessages, ISteamNetworkingUtils) and a flat C ABI wrapper. The main implementation lives in src/steamnetworkingsockets/clientlib, where the SNP reliable protocol, socket thread, direct UDP transport, P2P routing, and connection state machines are implemented, supported by a substantial private utility layer (tier0/tier1 containers, serialization buffers, string utilities) and multiple interchangeable crypto backends.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 5 reusable components found
heiher/hev-socks5-tunnel ★ 2014 382 APPLICATION

HevSocks5Tunnel is a lightweight, high-performance tun2socks proxy written in C. It creates a virtual TUN interface and forwards all TCP/UDP traffic through a SOCKS5 proxy, supporting IPv4/IPv6 dual-stack, UDP-in-UDP and UDP-in-TCP relay modes, optional local ICMP echo replies, and a mapped DNS feature for transparent DNS resolution. The architecture is monolithic but modular: a YAML-based configuration parser, platform-specific tunnel backends (Linux, FreeBSD, macOS, NetBSD, Windows via Wintun), and a session management layer built on top of lwIP and the hev-task-system cooperative multitasking library. It can be used as a standalone CLI tool, a static/shared library, or embedded via JNI on Android. The codebase demonstrates strong C craftsmanship with clean abstractions, efficient I/O patterns (ring buffer with iovec, scatter/gather), and careful platform abstraction.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 3 reusable components found
heiher/natmap ★ 1954 149 APPLICATION

NATMap is a command-line tool written in C that establishes TCP/UDP port mappings from an ISP NAT public address to a local private address. It uses STUN protocol to discover the mapped public address and maintain NAT bindings through keep-alive sessions. The architecture is built on a cooperative task-based concurrency model (hev-task-system) for efficient non-blocking I/O. It supports two modes: bind mode, where the tool keeps the port alive and notifies the user via a script, and forward mode, where it listens on the mapped port and forwards traffic to an internal target. The codebase is modular, with clear separation of concerns: configuration parsing, socket creation, STUN protocol handling, NAT session keepers (TCP/UDP), port forwarding servers, and script execution. It is highly portable, with cross-compilation support for Linux, Windows, macOS, FreeBSD, and Android across many architectures.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 3 reusable components found
webtorrent/bittorrent-tracker ★ 1939 331 APPLICATION

This repository provides a robust, production-ready implementation of a BitTorrent tracker, including both client and server components. The client can announce to HTTP, UDP, and WebSocket trackers to discover peers in a swarm, while the server can track multiple swarms, respond to announce and scrape requests, and expose statistics via a web interface. The architecture is modular, with separate tracker protocol implementations (HTTP, UDP, WebSocket) inheriting from a common base class, and a server that manages swarms using an LRU cache for peer storage. The codebase is well-tested, uses modern ESM modules, and is actively maintained as part of the WebTorrent ecosystem. It is primarily a library for Node.js, but also supports browser usage via bundlers.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 2 reusable components found
feschber/lan-mouse ★ 5381 304 APPLICATION

Lan Mouse is a cross-platform software KVM switch that enables sharing a single mouse and keyboard across multiple computers on a local network, inspired by Apple's Universal Control. It is implemented as a Rust daemon with a GTK4/Libadwaita GUI frontend and a CLI interface, supporting Linux (Wayland, X11), macOS, and Windows. Communication between peers uses DTLS/TLS encryption with self-signed certificate fingerprint authentication over UDP/TCP. Input capture and emulation are abstracted via traits with platform-specific backends (libei, layer-shell, X11, CoreGraphics, Windows input APIs), and client discovery relies on mDNS/DNS. The architecture features a central service orchestrator managing capture, emulation, state, and IPC with the frontend over Unix sockets (or TCP on Windows). The codebase demonstrates solid Rust practices, async patterns with Tokio, and clean trait design for platform abstraction. While functionally complete, there are known caveats around compositor support, scancode mappings, and some memory leaks, reflecting ongoing development effort.

RATING: 8.5/10 MAINT: active DRIFT: low
▸ 3 reusable components found
esnet/iperf ★ 8820 1461 APPLICATION

iperf3 is a mature, widely-deployed network bandwidth measurement tool developed by ESnet/LBNL. It measures maximum achievable throughput on IP networks using TCP, UDP, and SCTP, and provides detailed per-interval statistics including jitter, packet loss, retransmits, congestion window, and CPU utilization. The tool operates as a client-server application with a control channel for parameter exchange and data channels for bulk transfer, supporting parallel streams, reverse mode, bidirectional tests, and various pacing/affinity options. The codebase is written in C and built with GNU Autotools (autoconf, automake, libtool). It exposes a public library API (libiperf) that allows embedding iperf functionality into other programs, demonstrated by minimal examples in the examples/ directory. The architecture follows a protocol vtable pattern (struct protocol) for pluggable transport protocols, a callback system for test lifecycle events, and a timer subsystem for pacing and reporting intervals. JSON output is generated via a vendored cJSON library. Key strengths include its cross-platform support (Linux, FreeBSD, macOS, and others via #ifdef), extensive command-line options, and integration with perfSONAR for research and education networks. However, the codebase shows signs of organic growth: large monolithic files (iperf_api.c ~3000 lines), platform-specific #ifdef sprawl, manual release test scripts, and some unresolved TODOs. Security advisories have been issued for past vulnerabilities, and the authentication module uses OpenSSL RSA with multiple padding modes. Overall, iperf3 is a high-quality, production-grade tool with a few areas of technical debt.

RATING: 8.1/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
editso/fuso ★ 1950 206 APPLICATION

Fuso is a Rust-based intranet penetration and port forwarding tool that enables exposing local services behind NAT to the public internet via a relay server. It implements a client-server architecture with support for TCP forwarding, SOCKS5 proxy (including UDP association), KCP protocol for reliable UDP transport, LZ4 compression, and RSA+AES encryption. The system is built on a custom async runtime abstraction (supporting tokio and smol), with a modular design using provider and builder patterns. The server (fus) manages client connections and public listeners, while the client (fuc) registers port mappings and forwards traffic. Additional features include bridge mode for cascading proxies, heartbeat health checks, observer hooks for external notifications, and a configuration API. The codebase demonstrates strong Rust async patterns, protocol implementation skills, and a clean separation between core abstractions and runtime specifics.

RATING: 7.9/10 MAINT: active DRIFT: low
▸ 5 reusable components found
gnet-io/gnet-examples ★ 297 80 APPLICATION

This repository contains a collection of example applications demonstrating the use of the gnet networking library in Go. The examples cover various networking paradigms including TCP, UDP, Unix domain sockets, HTTP, WebSocket, and a custom binary protocol. Each example is a standalone program showcasing event-driven connection handling, message parsing, and protocol implementation using gnet's APIs. Key examples include echo servers for different transports, an HTTP server using wildcat for parsing, a push server broadcasting periodic messages, a simple protocol client/server with a custom framing codec, and WebSocket implementations using both gobwas/ws and a custom RFC 6455-compliant codec. The code illustrates gnet's event loop patterns, connection context usage, and efficient I/O handling. While the examples are generally idiomatic and functional, some dependencies show mild technical drift (e.g., the wildcat HTTP parser is outdated). The repository is actively maintained with recent commits and serves as a practical reference for learning gnet-based network programming in Go.

RATING: 7.3/10 MAINT: maintained DRIFT: medium
▸ 1 reusable components found
ngosang/trackerslist ★ 55108 6587 DATA_RESEARCH

This repository provides a curated, automatically updated collection of public BitTorrent trackers. It contains plain-text lists of tracker URLs categorized by protocol (UDP, HTTP, HTTPS, WebSocket, I2P, Yggdrasil), as well as subsets for the 'best' trackers and IP-address-based lists to avoid DNS resolution issues. The data is generated by an external bot that checks tracker availability, removes duplicates and blacklisted entries, and sorts by popularity and latency. There is no application code in the repository itself; it serves as a data resource consumed by BitTorrent clients and third-party tools. The project is heavily star-favored and actively maintained with daily updates.

RATING: 7.2/10 REPRO: 9.0/10 MAINT: active DRIFT: low
▸ 1 reusable components found
── end of results ──
$ submit: