HTTP Request Mechanics: Protocol Characteristics, Connection Management, and Message Structure
HTTP operates as a stateless, application-layer protocol designed for distributed, collaborative, and hypermedia information systems. Its architecture relies on three core principles: textual simplicity, structural extensibility, and platform agnosticism.
Protocol Characteristics
The protocol's design prioritizes readability and adaptability. H ...
Posted on Tue, 02 Jun 2026 18:02:48 +0000 by $phpNut
Solving Port 9999 Stuck in TIME_WAIT State After Process Termination in Ubuntu
On Ubuntu systems, when a process occupies port 9999 and the port remains unavailable due to TIME_WAIT state after the process terminates, preventing new processes from binding to it, you can implement several solutions:
Solution 1: Implement SO_REUSEADDR Socket Option
Configure your application code with the SO_REUSEADDR option to permit immed ...
Posted on Mon, 01 Jun 2026 18:10:43 +0000 by gibbo1715
WebSocket Protocol: Connection Lifecycle, Status Codes, and Disconnection Handling
Connection Establishment
The WebSocket handshake occurs over HTTP before upgrading to a persistent bidirectional connection.
Client Request
GET /realtime HTTP/1.1
Host: api.example.com
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: YnwxNDV0eGtleXBhc3M=
Sec-WebSocket-Version: 13
Upgrade: websocket signals the intent to switch protoc ...
Posted on Sun, 31 May 2026 23:45:59 +0000 by jrottman
Computer Network Notes: Implementing Simple UDP and TCP Communication in Python
Understanding UDP and TCP communication protocols is fundamental to computer network programming. This article explores the basic operational principles of both protocols and demonstrates their implementation through practical Python examples.
UDP and TCP Basic Operation Processes
UDP (User Datagram Protocol):
UDP follows a straightforward comm ...
Posted on Sat, 30 May 2026 23:36:59 +0000 by skylert
TCP Socket Communication in C#: Server and Client Data Exchange
Implementing bidirectional data exchange over TCP in C# requires coordinating a listener that binds to a network interface and a client that initiates the connection. The .NET framework provides TcpListener and TcpClient to abstract low-level socket operations, while NetworkStream manages the underlying byte transmission pipeline.
Server-Side I ...
Posted on Fri, 29 May 2026 22:33:52 +0000 by tinuviel
Linux Network Programming: TCP and UDP Protocols
While we often use serial ports for information printing in embedded systems, this approach isn't suitable for multi-host network environments. This introduces the concept of network programming. In Linux, network programming involves using sockets for inter-process communication, particularly between processes on different hosts. Sockets provi ...
Posted on Sat, 23 May 2026 20:50:48 +0000 by guzman-el-bueno
Core Concepts of Java NIO: Components, ByteBuffer Mechanics, and Packet Fragmentation Handling
Java NIO Core ComponentsJava NIO (Non-blocking I/O) revolves around three fundamental components: Channel, Buffer, and Selector.Channel: A bidirectional conduit for data transfer that can simultaneously handle read and write operations, always operating in conjunction with a buffer.Buffer: An in-memory data block acting as a staging area. Data ...
Posted on Fri, 22 May 2026 16:32:42 +0000 by Infinitus 8
Frontend Developer Technical Interview Reference
HTML Fundamentals
1. Purpose of the DOCTYPE Declaration
HTML operates as a markup language with formal syntax rules. DOCTYPE, short for Document Type, specifies which HTML or XHTML standard the browser should use to render a page. It must appear before the <html> tag, guiding the parser to interpret the document correctly.
<!DOCTYPE ht ...
Posted on Wed, 20 May 2026 19:54:04 +0000 by designxperts
Extensible Serialization Algorithms and Network Parameter Configuration in Netty
Serialization Requirements
A serialization algorithm must enable bidirectional conversion: Object → Byte Array → Object. During serialization, Java objects transform into transmissible data (byte[] or JSON), which ultimately converts to byte[]. Deserialization reverses this process, converting inbound data back to Java objects for processing.
I ...
Posted on Tue, 19 May 2026 09:51:23 +0000 by iijb
Efficiently Managing TCP Stream Integrity in Netty via Custom Protocol Encapsulation
Application-layer messages often lack inherent boundaries when transmitted over lower protocols like TCP. While the transport layer guarantees reliability and order, it does not preserve application message structure, leading to two common phenomena: sticky packets and fragmented packets.
Sticky Packet Scenarios
Sticky packets occur when multip ...
Posted on Thu, 14 May 2026 22:20:20 +0000 by rilana