Building a Minimal C++ HTTP Server from Scratch: Core Principles and Implementation

Building a Minimal C++ HTTP Server from Scratch: Core Principles and Implementation

Recently, while assisting a friend with a small tool project, I encountered a requirement: to embed a local HTTP service so that the frontend can access and control the backend logic. It sounds simple, but if we want to implement a minimal HTTP server from scratch using standard C++ network programming without relying on existing … Read more

What Knowledge Should Be Mastered in Embedded Software Development?

What Knowledge Should Be Mastered in Embedded Software Development?

1. What is Embedded Software? Embedded software typically refers to the software that runs on embedded systems. An embedded system is a special type of computer system, usually used for tasks such as control, monitoring, and data processing. Embedded systems generally consist of two parts: hardware and software, where embedded software refers to the programs … Read more

C Language Network Programming: From Beginner to Proficiency, Understand It All in One Article

Recommended Reading C Language Learning Guide: Have You Mastered These Core Knowledge Points? C Language Functions: From Beginner to Proficiency, Understand It All in One Article C Language Pointers: From Beginner to Proficiency, Understand It All in One Article C Language Arrays: From Beginner to Proficiency, Understand It All in One Article C Language Structures: … Read more

UDP Protocol Programming and Applications in C Language

UDP Protocol Programming and Applications in C Language

In network programming, UDP (User Datagram Protocol) is a connectionless transport layer protocol. Unlike TCP, UDP does not guarantee the order of packet delivery and does not provide a retransmission mechanism, making it suitable for scenarios that require high speed but low reliability, such as video streaming and online gaming. This article will introduce how … Read more

Network Programming in C: Basics of Socket Programming

Network Programming in C: Basics of Socket Programming

In modern computer networks, a socket is the fundamental interface for network communication. Through sockets, programs can transfer data between different hosts. This article will introduce how to implement simple network programming using C, including creating a server and a client. 1. Introduction to Sockets A socket is a mechanism for inter-process communication that provides … Read more

Network Programming in C: Basics of Socket Programming

Network Programming in C: Basics of Socket Programming

In modern computer science, network programming is an important field. The C language, as a low-level language, provides powerful capabilities for network communication. This article will introduce the basics of Socket programming in C, helping beginners understand how to use Sockets for simple network communication. What is a Socket? A Socket is a mechanism for … Read more

curlcpp: A Powerful C++ Library

curlcpp: A Powerful C++ Library

curlcpp: Simplifying Network Programming in C++ In C++ development, handling network requests has always been a complex and error-prone task. However, the emergence of curlcpp has greatly simplified this process. curlcpp is an object-oriented C++ library that encapsulates the popular cURL tool, making it easy to handle HTTP and other protocol network requests in C++ … Read more

High-Performance Network Programming in Linux: Implementing 22 High-Concurrency Models with C++11

High-Performance Network Programming in Linux: Implementing 22 High-Concurrency Models with C++11

Reflecting on a long-overdue blog post about “High-Performance Network Programming in Linux,” I spent the weekend coding to organize this article that implements 22 high-concurrency models using C++11. GitHub code repository: https://github.com/linkxzhou/mylib/tree/master/c%2B%2B/concurrency_server concurrency_server/ ├── base/ # Base component directory │ └── server_base.h # Base class for the server, providing common socket operations ├── benchmark/ # … Read more

Httpx: The Rising Star of Asynchronous HTTP!

Httpx: The Rising Star of Asynchronous HTTP!

▲ Click the card above to follow me Httpx: The Rising Star of Asynchronous HTTP! In today’s era of high concurrency and high-performance web applications, traditional synchronous HTTP requests are increasingly unable to meet our needs. As a brilliant new star in the Python ecosystem, Httpx is quietly changing the way we handle web requests. … Read more

Implementing a Network Chat Room in C: Communication and Interface Design

Implementing a Network Chat Room in C: Communication and Interface Design

Implementing a Network Chat Room in C: Communication and Interface Design In this article, we will learn how to implement a simple network chat room using the C programming language. We will divide it into two parts: the server side and the client side. Through these two parts, users can chat in real-time within the … Read more