Tagged articles
56 articles
Page 1 of 1
Deepin Linux
Deepin Linux
Jan 30, 2026 · Backend Development

Master Linux TCP: System Calls, Handshakes, and Real‑World Code

This article provides a comprehensive guide to Linux TCP development, explaining the role of system calls, the three‑way handshake and four‑way termination, detailing core socket functions such as socket, bind, listen, accept, connect, read/write, recv/send, and includes complete example code for building a simple TCP server and client with troubleshooting tips.

CLinuxTCP
0 likes · 41 min read
Master Linux TCP: System Calls, Handshakes, and Real‑World Code
Raymond Ops
Raymond Ops
Nov 4, 2025 · Fundamentals

Unlock Linux Networking: From Basics to Socket Programming

This article introduces Linux networking fundamentals, covering LAN and WAN concepts, the purpose and structure of network protocols, OSI and TCP/IP layered models, MAC and IP addressing, and provides a practical guide to socket programming with ports, address families, and common API calls.

LinuxNetworkingOSI model
0 likes · 25 min read
Unlock Linux Networking: From Basics to Socket Programming
Liangxu Linux
Liangxu Linux
Jul 19, 2025 · Fundamentals

Unlocking Linux Networking: From Basics to Socket Programming

This comprehensive guide walks you through Linux networking fundamentals, covering LAN/WAN concepts, protocol layers, OSI and TCP/IP models, MAC and IP addressing, data encapsulation, and practical socket programming with TCP and UDP, complete with diagrams and code examples.

NetworkingProtocolsTCP/IP
0 likes · 22 min read
Unlocking Linux Networking: From Basics to Socket Programming
Deepin Linux
Deepin Linux
Jun 28, 2025 · Fundamentals

Why Does TCP/UDP Lose Packets? Deep Dive into Causes and Fixes

This article explores the root causes of packet loss in TCP and UDP—including application bugs, kernel buffer limits, network congestion, protocol limitations, and handshake failures—and presents practical solutions such as code optimization, socket tuning, congestion‑control adjustments, and forward error correction techniques.

Packet LossTCPUDP
0 likes · 25 min read
Why Does TCP/UDP Lose Packets? Deep Dive into Causes and Fixes
php Courses
php Courses
Apr 24, 2025 · Backend Development

Introduction to Socket Programming in Python: TCP and UDP Examples

This article explains the fundamentals of socket programming in Python, covering basic concepts such as IP addresses, ports, and protocols, and provides complete TCP and UDP server/client code examples along with common troubleshooting tips and advanced modules for building robust network applications.

PythonTCPUDP
0 likes · 7 min read
Introduction to Socket Programming in Python: TCP and UDP Examples
ITPUB
ITPUB
Mar 24, 2025 · Fundamentals

Can TCP and UDP Share the Same Port? Deep Dive into OS Port Management

This article explains why TCP and UDP can use the same numeric port, how client and server processes manage port sharing, and the role of socket options like SO_REUSEADDR and SO_REUSEPORT in enabling high‑availability and load‑balanced networking.

Port SharingTCPUDP
0 likes · 16 min read
Can TCP and UDP Share the Same Port? Deep Dive into OS Port Management
Deepin Linux
Deepin Linux
Jan 9, 2025 · Backend Development

Deep Dive into Network I/O: Principles, Socket Types, and epoll Multiplexing

This article explains the fundamentals of network I/O, covering hardware basics, process scheduling, blocking and non‑blocking models, multiplexed I/O techniques such as select/poll/epoll, asynchronous I/O, socket types, and the user‑kernel boundary, providing a comprehensive guide for backend developers.

Backend DevelopmentLinuxNetwork I/O
0 likes · 39 min read
Deep Dive into Network I/O: Principles, Socket Types, and epoll Multiplexing
Liangxu Linux
Liangxu Linux
Aug 13, 2024 · Backend Development

Master Go Socket and HTTP Programming: Dial, ICMP, and Custom Requests

Learn how to use Go's net package for low‑level socket programming—including TCP, UDP, and ICMP connections with the Dial function—and build HTTP clients with net/http, covering basic requests, POST forms, custom headers, and practical code examples.

Backend DevelopmentGoHTTP
0 likes · 12 min read
Master Go Socket and HTTP Programming: Dial, ICMP, and Custom Requests
php Courses
php Courses
Jun 21, 2024 · Backend Development

Implementing CoID Protocol for Enterprise Internal Communication Using PHP

This article explains the CoID (Corporation Internal Communication) protocol and provides step‑by‑step PHP code examples for building a TCP socket server and client that exchange JSON‑encoded messages, demonstrating how to achieve reliable, secure internal communication within an enterprise.

Backend DevelopmentCoID ProtocolPHP
0 likes · 4 min read
Implementing CoID Protocol for Enterprise Internal Communication Using PHP
MaGe Linux Operations
MaGe Linux Operations
Jun 20, 2024 · Backend Development

Master Go’s net.Dial: From Socket Basics to HTTP Clients

This article explains Go's socket programming workflow, detailing the traditional steps of creating, binding, listening, and communicating over sockets, then shows how net.Dial simplifies connections for TCP, UDP, and ICMP, and demonstrates practical HTTP client usage with code examples.

GoHTTPNetwork programming
0 likes · 11 min read
Master Go’s net.Dial: From Socket Basics to HTTP Clients
php Courses
php Courses
May 22, 2024 · Backend Development

Comprehensive Backend Development Course: Processes, Socket Programming, Nginx, FASTCGI, Byte Order, and Redis Fundamentals

This course provides an in‑depth exploration of core backend concepts, covering process fundamentals, TCP/IP socket communication, Nginx integration with PHP‑FPM via FASTCGI, host‑to‑network byte order conversion, and Redis basics, aiming to equip developers, sysadmins, and network engineers with comprehensive backend development skills.

Backend DevelopmentNGINXNetwork Protocols
0 likes · 3 min read
Comprehensive Backend Development Course: Processes, Socket Programming, Nginx, FASTCGI, Byte Order, and Redis Fundamentals
MaGe Linux Operations
MaGe Linux Operations
Mar 9, 2024 · Backend Development

Mastering Go Socket Programming: From TCP/UDP to HTTP Clients

This article explains Go’s socket programming model, covering the classic five‑step workflow, the versatile net.Dial function, and practical code examples for ICMP, TCP, and HTTP client operations, helping developers build networked applications efficiently.

Code ExamplesGoHTTP
0 likes · 10 min read
Mastering Go Socket Programming: From TCP/UDP to HTTP Clients
Open Source Tech Hub
Open Source Tech Hub
Nov 13, 2023 · Backend Development

Mastering Socket Programming: From Basics to Epoll and Reactor Patterns

This article explains the fundamentals of socket programming, detailing server and client setup steps, the TCP three‑way handshake, criteria for readable and writable sockets, and advanced techniques such as multi‑process models, I/O multiplexing, the Reactor pattern, and Epoll’s role in efficient event‑driven networking.

I/O MultiplexingReactor Patternepoll
0 likes · 9 min read
Mastering Socket Programming: From Basics to Epoll and Reactor Patterns
Liangxu Linux
Liangxu Linux
Sep 29, 2023 · Backend Development

5 Common Socket Programming Pitfalls and How to Avoid Them

This article outlines five frequent mistakes in C socket programming—ignoring return values, mishandling peer closures, address‑in‑use errors, endianness issues when sending structured data, and false assumptions about TCP framing—while providing concrete code examples and Linux debugging tools to help developers write more reliable network code.

CError HandlingLinux networking
0 likes · 13 min read
5 Common Socket Programming Pitfalls and How to Avoid Them
MaGe Linux Operations
MaGe Linux Operations
Jul 1, 2023 · Fundamentals

Ensuring 60‑Second TCP Keep‑Alive During Unstable Networks

Facing frequent packet loss and network jitter that disrupts video conferences, this article examines TCP/IP stack heartbeat and retransmission mechanisms, demonstrates how to configure Windows keepalive parameters, and provides code examples for custom socket options and non‑blocking connect timeouts to maintain session continuity within 60 seconds.

KeepaliveTCPWindows
0 likes · 22 min read
Ensuring 60‑Second TCP Keep‑Alive During Unstable Networks
Su San Talks Tech
Su San Talks Tech
Nov 12, 2022 · Fundamentals

When Is UDP Faster Than TCP? Deep Dive into Socket Protocols

While UDP is often assumed to be faster than TCP, this article explains socket basics, the reliability mechanisms of TCP, scenarios where UDP can be slower, and how application-layer solutions like KCP or QUIC add reliability, helping readers understand when each protocol truly excels.

Network ProtocolsPacket LossReliability
0 likes · 13 min read
When Is UDP Faster Than TCP? Deep Dive into Socket Protocols
Tencent Cloud Developer
Tencent Cloud Developer
Jul 20, 2022 · Fundamentals

Deep Dive into the TCP Three‑Way Handshake from the Linux Kernel Perspective

The article explains how the Linux kernel implements the TCP three‑way handshake, detailing server listen queue allocation, client connect port selection and SYN transmission, SYN‑ACK processing, state transitions, request‑socket management, full‑connection queue handling, and the final accept call, plus tuning tips.

Linux kernelNetwork StackTCP
0 likes · 19 min read
Deep Dive into the TCP Three‑Way Handshake from the Linux Kernel Perspective
Architecture Digest
Architecture Digest
May 6, 2022 · Fundamentals

Understanding Port Listening with Python Socket Examples

This article uses a conversational story to explain what it means to listen on a network port, covering TCP vs UDP, binding to specific IPs, reuse‑port options, IPv4 and IPv6 differences, and demonstrates the concepts with multiple Python socket code snippets.

IPv4IPv6Python
0 likes · 13 min read
Understanding Port Listening with Python Socket Examples
Code DAO
Code DAO
May 1, 2022 · Fundamentals

How to Build a Linux Packet Sniffer Using Raw Sockets and BPF

This article walks through creating a Linux packet sniffer that bypasses libpcap, explains PF_PACKET raw sockets, shows how to bind to a specific interface, enable promiscuous mode, attach a BPF filter compiled with tcpdump, and parse Ethernet and IP headers in a continuous receive loop.

BPFLinuxPF_PACKET
0 likes · 26 min read
How to Build a Linux Packet Sniffer Using Raw Sockets and BPF
IT Services Circle
IT Services Circle
Mar 12, 2022 · Fundamentals

Comprehensive Guide to TCP: Header Structure, Handshakes, Connection Management, and Socket Programming

This article provides an in‑depth tutorial on TCP, covering its header structure, three‑way handshake, reasons for three handshakes, four‑way termination, TIME_WAIT, SYN attacks, Linux kernel parameters, and practical socket programming examples, all illustrated with diagrams and code snippets.

Connection ManagementHandshakeNetworking
0 likes · 43 min read
Comprehensive Guide to TCP: Header Structure, Handshakes, Connection Management, and Socket Programming
Liangxu Linux
Liangxu Linux
Sep 16, 2021 · Operations

How Does tcpdump Capture Packets Inside the Linux Kernel?

This article explains the low‑level mechanisms by which tcpdump intercepts network packets in the Linux kernel, covering both the receive and transmit paths, the interaction with netfilter, and the steps required to implement a custom packet‑sniffing program.

Packet Capturenetfilternetwork debugging
0 likes · 12 min read
How Does tcpdump Capture Packets Inside the Linux Kernel?
21CTO
21CTO
Jun 15, 2021 · Backend Development

Master High‑Performance Linux Servers with OpenResty, Epoll, and Lua

Learn how Linux’s non‑blocking I/O mechanisms such as select, poll, and epoll enable high‑concurrency servers, explore OpenResty’s Lua‑based architecture, and follow step‑by‑step instructions for installing, configuring, and troubleshooting a performant OpenResty/Nginx environment on Linux.

LinuxLuaNGINX
0 likes · 11 min read
Master High‑Performance Linux Servers with OpenResty, Epoll, and Lua
Youzan Coder
Youzan Coder
May 31, 2021 · Backend Development

16 TCP Network Programming Best Practices for Building Robust Applications

The article presents sixteen practical TCP network‑programming best practices—from setting SO_REUSEADDR and defining port standards to using application‑layer heartbeats, exponential backoff, connection limits, client‑side load balancing, periodic DNS refresh, optimal buffer sizing, configurable timeouts, proper connection‑pool sizing, and comprehensive metrics—to help developers build stable, reliable applications.

Backend DevelopmentConnection PoolLinux TCP
0 likes · 28 min read
16 TCP Network Programming Best Practices for Building Robust Applications
Liangxu Linux
Liangxu Linux
Jan 17, 2021 · Fundamentals

When Do SO_REUSEADDR and SO_REUSEPORT Actually Take Effect? A Deep Dive

This article explains the differences and interactions between the SO_REUSEADDR and SO_REUSEPORT socket options, shows how they behave on BSD and Linux kernels across versions, and provides code examples and tables to illustrate binding rules, TIME_WAIT handling, and the evolution of reuse‑port support.

Linux kernelSO_REUSEADDRSO_REUSEPORT
0 likes · 14 min read
When Do SO_REUSEADDR and SO_REUSEPORT Actually Take Effect? A Deep Dive
Java Captain
Java Captain
Nov 14, 2020 · Backend Development

Netty‑Based Chat Application: Functional Implementation and Code Walkthrough

This article presents a comprehensive walkthrough of a Java chat application built with Netty for server‑side communication and Swing for the client UI, detailing functional features such as password, nickname, and signature updates, friend management, single‑chat messaging, online status detection, and includes full source code snippets and execution screenshots.

Friend ManagementJavaNetty
0 likes · 19 min read
Netty‑Based Chat Application: Functional Implementation and Code Walkthrough
JavaEdge
JavaEdge
Nov 2, 2020 · Backend Development

Understanding Traditional Socket vs Netty: Core Components and Workflow

This article explains the fundamentals of traditional socket programming and compares it with Netty's architecture, covering server and client components, HTTP request handling steps, Netty's NioEventLoop, Channel, ByteBuf, Pipeline, and unsafe implementations, all illustrated with diagrams and code snippets.

Backend DevelopmentJavaNetty
0 likes · 6 min read
Understanding Traditional Socket vs Netty: Core Components and Workflow
Architecture Digest
Architecture Digest
Sep 30, 2020 · Backend Development

Introduction to Linux Socket Programming and OpenResty Deployment

This article explains Linux socket programming techniques such as non‑blocking I/O and epoll, discusses caching and asynchronous design for high‑performance servers, and provides a step‑by‑step guide to installing, configuring, and developing with OpenResty (Nginx + Lua) on Linux and Windows environments.

LuaOpenRestyhigh concurrency
0 likes · 12 min read
Introduction to Linux Socket Programming and OpenResty Deployment
Efficient Ops
Efficient Ops
Aug 16, 2020 · Backend Development

Build High‑Performance Web Services with OpenResty and Linux Socket I/O

This guide explains how to use Linux non‑blocking socket APIs (select, poll, epoll) and the OpenResty platform (Nginx + LuaJIT) to create scalable, high‑concurrency web services, covering architecture, caching strategies, and step‑by‑step installation and configuration.

LinuxLuaNGINX
0 likes · 11 min read
Build High‑Performance Web Services with OpenResty and Linux Socket I/O
MaGe Linux Operations
MaGe Linux Operations
Jul 31, 2020 · Information Security

Build a Python TCP Port Scanner with Multithreading and Nmap

This article demonstrates how to build a Python TCP port scanner using raw sockets, adds service fingerprinting by sending probes, speeds up scans with multithreading, and shows an alternative approach using the nmap library, complete with example code and sample output.

multithreadingnmapport scanning
0 likes · 5 min read
Build a Python TCP Port Scanner with Multithreading and Nmap
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Nov 14, 2019 · Fundamentals

How to Replace TCP FIN with RST Using SO_LINGER in Go

This article explains why TIME_WAIT occurs, its resource impact, and demonstrates two optimization strategies—accelerating TIME_WAIT reclamation and using the SO_LINGER option to send an RST packet instead of the normal FIN handshake, with complete Go client and server examples and packet‑capture analysis.

RSTSO_LINGERTCP
0 likes · 8 min read
How to Replace TCP FIN with RST Using SO_LINGER in Go
Efficient Ops
Efficient Ops
Sep 10, 2018 · Fundamentals

Mastering TCP States: From Handshake to Connection Teardown

Understanding TCP state transitions, common diagnostic commands, and the detailed processes of connection establishment, termination, and related issues such as SYN flood, TIME_WAIT, and keepalive mechanisms equips engineers to troubleshoot network and system faults effectively.

LinuxTCPTCP states
0 likes · 28 min read
Mastering TCP States: From Handshake to Connection Teardown
Tencent Cloud Developer
Tencent Cloud Developer
Apr 10, 2018 · Fundamentals

Comprehensive Overview of IPv6: Concepts, Linux Implementation, Experiments, and Transition Technologies

This article delivers a comprehensive, experiment‑driven guide to IPv6, covering its 128‑bit address scheme, Linux kernel stack, practical setups such as stateless autoconfiguration and web services, various transition mechanisms like dual‑stack, tunneling and NAT64/DNS64, and detailed socket‑programming considerations for developers.

IPv6LinuxNetworking
0 likes · 38 min read
Comprehensive Overview of IPv6: Concepts, Linux Implementation, Experiments, and Transition Technologies
MaGe Linux Operations
MaGe Linux Operations
Mar 8, 2017 · Backend Development

Build a Python HTTP Server from Scratch Using Raw Sockets

This tutorial explains why mastering low‑level socket programming is valuable, introduces TCP/IP fundamentals, walks through creating a TCP socket server in Python, shows how to implement a simple HTTP server, and suggests ways to extend the server with multithreading and additional features.

HTTP serverNetwork programmingPython
0 likes · 12 min read
Build a Python HTTP Server from Scratch Using Raw Sockets
Tencent Music Tech Team
Tencent Music Tech Team
May 20, 2016 · Fundamentals

In‑Depth Analysis of TCP Connection Timeout, TIME_WAIT, Nagle Algorithm and Kernel Parameters

This article examines three common TCP issues—missing client‑side socket timeouts leading to monitor‑killed processes, excessive TIME_WAIT sockets after service failures and their kernel tunables, and 40 ms keep‑alive latency caused by Nagle and delayed ACK—explaining kernel behavior and offering practical configuration fixes.

Linux kernelNagle algorithmTCP
0 likes · 19 min read
In‑Depth Analysis of TCP Connection Timeout, TIME_WAIT, Nagle Algorithm and Kernel Parameters
21CTO
21CTO
Sep 8, 2015 · Backend Development

Demystifying TCP/IP, UDP, and Socket Programming with a Practical MFC Example

This article explains the fundamentals of TCP/IP and UDP protocols, clarifies where sockets fit in the network stack, describes their role as a façade layer, and provides a complete MFC‑based client‑server example with full source code for initializing, binding, listening, connecting, sending, and receiving data.

C++MFCTCP/IP
0 likes · 9 min read
Demystifying TCP/IP, UDP, and Socket Programming with a Practical MFC Example
Baidu Tech Salon
Baidu Tech Salon
Apr 28, 2014 · Backend Development

The Elevator Bug: A Debugging Story

After weeks of puzzling over intermittent socket disconnections in a persistent‑connection server, the author finally traced the fault to a missing timeout/notification when the remote service drops while awaiting an authentication code—a revelation sparked by a noisy office party, a spilled cola, and a missed elevator.

Backend DevelopmentDebuggingproblem-solving
0 likes · 7 min read
The Elevator Bug: A Debugging Story