# Socket networking libraries

> AI-ranked search results for `socket libraries` on awesome-repositories.com — ordered by an LLM for relevance, best match first. 95 total matches; showing the top 30.

Explore on the web: https://awesome-repositories.com/q/socket-libraries

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [this search on awesome-repositories.com](https://awesome-repositories.com/q/socket-libraries).**

## Results

- [netty/netty](https://awesome-repositories.com/repository/netty-netty.md) (34,975 ⭐) — Netty is an asynchronous network framework designed for building scalable protocol servers and clients. It utilizes an event-driven reactor pattern and a non-blocking input/output model to decouple connection handling from application logic, allowing for the development of responsive network services that manage high volumes of concurrent connections.

The framework distinguishes itself through a modular pipeline-based processing chain that enables the implementation of custom binary or text-based protocols. It provides a pluggable transport abstraction that allows developers to switch between
- [zaphoyd/websocketpp](https://awesome-repositories.com/repository/zaphoyd-websocketpp.md) (7,702 ⭐) — This is a header-only C++ library and asynchronous network framework used to implement WebSocket clients and servers. It provides a full implementation of the WebSocket protocol, including handshakes, subprotocol negotiation, and frame parsing.

The framework is distinguished by a policy-based transport layer and template-driven protocol negotiation, allowing the underlying network implementation to be swapped between raw buffers, streams, or custom policies. It supports per-message deflate compression to reduce data transmission volume and integrates Transport Layer Security for encrypted bid
- [warmcat/libwebsockets](https://awesome-repositories.com/repository/warmcat-libwebsockets.md) (5,296 ⭐) — libwebsockets is an event-driven networking framework written in C. It provides a suite of tools for implementing HTTP servers and clients, WebSocket bidirectional communication, MQTT client messaging, and TLS-enabled socket encryption.

The project distinguishes itself through a non-blocking event-loop architecture capable of scaling to high connection volumes by distributing network sessions across multiple service threads. It uses a protocol-based callback system and a pluggable event loop integration that allows the networking core to synchronize with external system event libraries.

The
- [robbiehanson/cocoaasyncsocket](https://awesome-repositories.com/repository/robbiehanson-cocoaasyncsocket.md) (12,454 ⭐) — CocoaAsyncSocket is a networking library for macOS and iOS that provides core components for managing asynchronous TCP and UDP streams. It implements non-blocking network communication to maintain application responsiveness during data transfers, featuring a delegate-based system for managing connection streams and packet handling.

The library includes a secure communication layer that wraps TCP sockets to apply encryption standards, protecting client and server traffic from unauthorized interception.

Its capabilities cover non-blocking connection management for both stream-based TCP and pac
- [reactphp/socket](https://awesome-repositories.com/repository/reactphp-socket.md) (1,285 ⭐) — This library provides a framework for building event-driven, non-blocking network applications in PHP. It enables the development of asynchronous TCP and TLS servers and clients that manage multiple concurrent connections without stalling the main execution thread. By utilizing an event-loop architecture, the library handles network operations and data exchange through asynchronous streams, ensuring that the application remains responsive during high-throughput tasks.

The project distinguishes itself through its integration with operating system primitives, such as raw file descriptors and Un
- [azure/dotnetty](https://awesome-repositories.com/repository/azure-dotnetty.md) (4,238 ⭐) — DotNetty is an asynchronous network framework and event-driven networking library for .NET. It is a port of the Netty architecture designed for building high-performance protocol servers and clients.

The framework enables the development of network applications that handle concurrent connections and high-throughput data streaming without blocking execution threads. It supports the implementation of custom network protocols through defined encoding and decoding rules.

The library utilizes a pipeline-based processing model and non-blocking I/O to manage network traffic. Its architecture incorp
- [keepsafe/aiohttp](https://awesome-repositories.com/repository/keepsafe-aiohttp.md) (16,447 ⭐) — aiohttp is an asynchronous networking framework for Python that provides both an HTTP client and an HTTP server. It utilizes the asyncio library to handle network requests and server-side routing through a non-blocking event loop.

The framework includes a dedicated toolkit for establishing persistent bidirectional communication channels, enabling the implementation of both WebSocket servers and clients for real-time data exchange.

It covers a broad range of asynchronous network programming capabilities, including the development of web servers with customizable routing and the ability to sen
- [walkor/workerman](https://awesome-repositories.com/repository/walkor-workerman.md) (11,547 ⭐) — Workerman is an event-driven asynchronous socket framework for PHP. It provides the core components necessary to build high-concurrency network servers, including an asynchronous TCP framework, a coroutine library for task management, and dedicated implementations for HTTP and WebSocket servers.

The project enables the development of specialized network services using custom frame-based communication protocols. It supports both inbound concurrent server implementation and asynchronous outbound connectivity to remote services.

The framework covers a broad range of network programming capabili
- [socketio/engine.io](https://awesome-repositories.com/repository/socketio-engine-io.md) (4,581 ⭐) — Engine.io is a real-time transport layer and cross-browser communication engine. It serves as a low-level bidirectional communication library designed to manage the underlying network connections and data exchange required for real-time applications.

The library provides a WebSocket transport mechanism that includes automatic fallback to HTTP long-polling when bidirectional protocols are unavailable. It functions as the essential infrastructure for Socket.IO, enabling connection upgrades from standard HTTP handshakes to persistent TCP connections.

Its capabilities include heartbeat-based con
- [ithewei/libhv](https://awesome-repositories.com/repository/ithewei-libhv.md) (7,521 ⭐) — libhv is a high-performance C/C++ network library and event-driven I/O framework used to build TCP, UDP, SSL, HTTP, WebSocket, and MQTT clients and servers. It provides a non-blocking event loop for managing network sockets, timers, and system signals across multiple threads.

The project is distinguished by its integrated support for specialized network roles, including a full HTTP web server with RESTful routing and middleware, an MQTT messaging client for IoT communication, and the ability to implement SOCKS5 and HTTP proxies. It also features a reliable UDP implementation to ensure ordered
- [tootallnate/java-websocket](https://awesome-repositories.com/repository/tootallnate-java-websocket.md) (10,811 ⭐) — Java-WebSocket is a collection of classes for implementing WebSocket clients and servers using pure Java. It provides a framework for hosting servers that manage connections via event-driven subclasses and tools for establishing client connections to remote servers.

The library includes a secure communication tool for encrypting traffic using the WSS protocol and a compression library that uses per-message deflate extensions to reduce transmitted data size. It supports the configuration of cipher suites to limit encryption protocols and ensure compatible communication.

The project enables bi
- [koush/androidasync](https://awesome-repositories.com/repository/koush-androidasync.md) (7,540 ⭐) — AndroidAsync is a non-blocking networking library for Android that provides asynchronous sockets, HTTP clients, and servers based on Java NIO. It serves as a toolkit for managing raw TCP socket connections and bidirectional data streams using an asynchronous input and output architecture.

The library includes a dedicated WebSocket framework for establishing persistent full-duplex communication channels between Android clients and servers. It also enables the hosting of a lightweight asynchronous HTTP server directly on an Android device to handle incoming network traffic.

Its broader capabil
- [chenshuo/muduo](https://awesome-repositories.com/repository/chenshuo-muduo.md) (16,157 ⭐) — Muduo is a C++11 event-driven network library and framework designed for building high-concurrency Linux servers. It provides a toolkit for implementing scalable network services and socket communication using non-blocking I/O and asynchronous event processing.

The framework implements a multi-threaded TCP server architecture that distributes connection handling across multiple CPU threads to maximize server throughput. This is achieved through a one-loop-per-thread model and a reactor pattern implementation, which dispatch network events from a central demultiplexer to registered handler fun
- [chriskohlhoff/asio](https://awesome-repositories.com/repository/chriskohlhoff-asio.md) (5,896 ⭐) — Asio is a C++ library for performing network and low-level I/O operations using a consistent asynchronous model that avoids blocking program execution. It provides a portable, cross-platform interface for network socket communication across different operating systems, and manages multiple asynchronous operations without requiring explicit thread management or locking.

The library implements a proactor-based asynchronous model where operations post completion handlers to a queue for later execution, and wraps operating system I/O multiplexing mechanisms like epoll, kqueue, IOCP, and select in
- [socketio/socket.io](https://awesome-repositories.com/repository/socketio-socket-io.md) (63,195 ⭐) — Socket.io is a real-time communication engine that enables bidirectional, event-based data exchange between clients and servers. It provides a robust transport-agnostic protocol layer that automatically manages connection lifecycles, including heartbeat signals, automatic reconnection, and seamless fallback between WebSockets and HTTP long-polling. By maintaining persistent links, it ensures reliable messaging across diverse network environments.

The project distinguishes itself through a scalable, distributed architecture that supports multi-node synchronization and room-based message routin
- [cloudwego/netpoll](https://awesome-repositories.com/repository/cloudwego-netpoll.md) (4,583 ⭐) — Netpoll is an event-driven network framework and non-blocking I/O library designed to manage concurrent TCP and Unix domain socket connections. It utilizes a non-blocking event loop to monitor file descriptors and trigger callbacks for read and write events, serving as a high-performance socket manager and TCP network poller.

The framework optimizes throughput across CPU cores by distributing incoming network connections across multiple pollers. It implements zero-copy networking primitives, using linked buffers and specialized memory management to read and write data while minimizing memory
- [libuv/libuv](https://awesome-repositories.com/repository/libuv-libuv.md) (26,912 ⭐) — libuv is a cross-platform asynchronous I/O library that provides an abstraction layer for event-driven networking, filesystem operations, and system signals. It utilizes a non-blocking event loop to coordinate asynchronous tasks and I/O events across different operating systems.

The project features a unified interface for managing TCP, UDP, and DNS resolution, alongside an inter-process communication layer for sharing sockets via named pipes and Unix domain sockets. To prevent blocking the main execution loop, it includes a multi-platform thread pool for offloading computationally expensive
- [theturtle32/websocket-node](https://awesome-repositories.com/repository/theturtle32-websocket-node.md) (3,784 ⭐) — WebSocket-Node is a server-side implementation of the WebSocket protocol for Node.js environments. It serves as a framework for establishing persistent, bidirectional communication channels and low-latency data exchange between clients and servers.

The project provides a secure socket implementation using transport layer security and includes an integrated client for establishing outbound encrypted connections. It utilizes a formal protocol-state machine and an event-driven connection framework to manage high-concurrency network streams.

The framework covers server-side infrastructure includ
- [boostorg/asio](https://awesome-repositories.com/repository/boostorg-asio.md) (1,587 ⭐) — Boost.org asio module
- [microsoft/cpprestsdk](https://awesome-repositories.com/repository/microsoft-cpprestsdk.md) (8,265 ⭐) — The C++ REST SDK is a library for asynchronous HTTP and RESTful communication in native C++ applications. It provides a non-blocking network client for sending requests and receiving responses, a JSON parser for serializing and deserializing data, and a WebSocket client library for real-time, full-duplex communication.

The project includes a dedicated OAuth2 authentication client to manage access tokens and authorization flows for secure communication with protected cloud resources. It utilizes a task-based asynchronous model to coordinate background operations and keep application interfaces
- [qihoo360/evpp](https://awesome-repositories.com/repository/qihoo360-evpp.md) (3,767 ⭐) — evpp is a C++ network library and framework designed for building high-performance network services using TCP, UDP, and HTTP protocols. It provides an asynchronous event loop to manage nonblocking I/O operations and concurrent network connections across multiple threads.

The framework includes specialized tools for asynchronous DNS resolution and a system for asynchronous task scheduling using a managed thread pool. It also features a nonblocking HTTP server and client with integrated connection pooling.

The project covers low-level transport layer connectivity for TCP and UDP, as well as hi
- [reactphp/reactphp](https://awesome-repositories.com/repository/reactphp-reactphp.md) (9,091 ⭐) — ReactPHP is an asynchronous runtime and event-driven I/O framework for PHP. It provides an environment for executing concurrent tasks through a central event loop implementation and reactor pattern, allowing applications to handle multiple operations without pausing the main execution thread.

The project includes a specialized asynchronous socket library for TCP, UDP, and TLS communication, alongside a non-blocking HTTP server and client for streaming web requests and responses.

Its capability surface covers asynchronous control flow via promises and fibers, non-blocking network connectivity
- [cesanta/mongoose](https://awesome-repositories.com/repository/cesanta-mongoose.md) (12,876 ⭐) — Mongoose is an embedded networking library providing TCP/IP stacks, web server hosting, and IoT device connectivity. It enables microcontrollers and desktop systems to implement network protocols including HTTP, WebSocket, and MQTT.

The project provides a bare-metal TCP/IP stack for environments without a native operating system and includes built-in TLS and ECC encryption to secure network traffic. It features a binary-embedded file system to serve web content directly from the executable and supports over-the-air firmware updates for managing device fleets.

Additional capabilities cover as
- [panjf2000/gnet](https://awesome-repositories.com/repository/panjf2000-gnet.md) (11,186 ⭐) — gnet is a high-performance event-driven networking framework for Go, designed for building scalable TCP, UDP, and Unix socket servers. It functions as a non-blocking socket manager and multi-reactor network engine that handles thousands of simultaneous connections with low memory overhead.

The framework distinguishes itself by using a multi-reactor architecture that distributes I/O across multiple event loops pinned to operating system threads to minimize context switching. It employs edge-triggered polling to reduce system call frequency and utilizes elastic ring-buffers to minimize allocati
- [yedf2/handy](https://awesome-repositories.com/repository/yedf2-handy.md) (4,653 ⭐) — Handy is a C++11 network server framework and event-driven networking engine designed for building high-performance concurrent TCP and UDP servers. It functions as an asynchronous I/O library and an HTTP server implementation that separates asynchronous network I/O from synchronous business logic to simplify server development.

The framework distinguishes itself by utilizing platform-specific event notifications to manage millions of simultaneous network connections and providing an SSL/TLS network wrapper for encrypted asynchronous data transmission. It implements a half-sync/half-async proc
- [libevent/libevent](https://awesome-repositories.com/repository/libevent-libevent.md) (11,914 ⭐) — Libevent is a cross-platform library that provides a mechanism for executing callback functions when specific events occur on file descriptors, signals, or timers. It functions as a network event loop framework, enabling the development of applications that manage concurrent network connections and non-blocking input and output operations within a single execution context.

The library distinguishes itself by providing a portable abstraction layer that automatically selects the most efficient system-level event notification mechanism available on the host operating system. It includes thread-s
- [boostorg/beast](https://awesome-repositories.com/repository/boostorg-beast.md) (4,801 ⭐) — Beast is a C++ library for implementing low-level HTTP and WebSocket clients and servers. It functions as an asynchronous networking framework designed to compose non-blocking I/O operations and layered stream stacks for managing concurrent network traffic, specifically utilizing the Boost.Asio asynchronous model.

The library provides a comprehensive implementation of the HTTP/1.1 and WebSocket protocols. For HTTP, it includes primitives for parsing and serializing messages with support for chunked transfer encoding, incremental body reading, and request pipelining. Its WebSocket implementati
- [daltoniam/starscream](https://awesome-repositories.com/repository/daltoniam-starscream.md) (8,639 ⭐) — Starscream is a Swift WebSocket client library that provides a concrete implementation of the WebSocket protocol for iOS and macOS applications. It functions as an event-driven wrapper for establishing and managing bidirectional connections to send and receive text and binary frames over TCP.

The library includes a secure WebSocket client capable of encrypting traffic and validating server identities. It manages the full connection lifecycle, from the initial handshake and header exchange to session termination with custom close codes.

The project covers a broad range of networking capabilit
- [socketio/socket.io-client-swift](https://awesome-repositories.com/repository/socketio-socket-io-client-swift.md) (5,299 ⭐) — This is a Socket.IO client library for Swift, providing an event-driven networking framework for establishing real-time, bidirectional communication between iOS applications and Socket.IO servers. It functions as a tool for maintaining persistent connections and exchanging named data events and binary payloads.

The library implements a WebSocket-based transport with an HTTP long-polling fallback to ensure connectivity. It manages a callback-based architecture to handle server notifications and utilizes encrypted communication channels to secure network traffic.

The framework covers the excha
- [ldcsaa/hp-socket](https://awesome-repositories.com/repository/ldcsaa-hp-socket.md) (6,132 ⭐) — HP-Socket is a networking library for building scalable TCP, UDP, and HTTP servers and clients with event-driven I/O and SSL encryption. It provides a high-performance TCP server framework, an HTTP request handler that parses incoming requests and generates responses, and a UDP communication library for low-latency data transfer, all with optional SSL encryption for secure communication.

The library is built on a completion-port-based I/O architecture that uses Windows I/O Completion Ports for scalable asynchronous socket operations. It features a connection-pooled agent architecture for mana
