A brief analysis of network protocols-HTTP protocol

1. Introduction to HTTP The HTTP protocol is the abbreviation of Hyper Text Transfer Protocol, which is a transfer protocol used to transfer hypertext from the World Wide Web (WWW: World Wide Web) server to the local browser. HTTP is a communication protocol based on TCP/IP to transfer data (HTML files, image files, query results, […]

[Unity Network Communication] Teach you how to use TCP and UDP protocols in one step

An article about Unity acting as both client and server Communication protocol TCP, UDP There are many repeated methods on the server side. Interested friends can write them as base classes to reduce the repetition rate. 1. Preface Achieve sending specified commands through TCP or UDP protocol, and the receiving end performs operations related to […]

Thoughts on building custom protocols (Java)

It has been a year since I started working. Looking back on the process, agreements account for the vast majority. JSON (common communication text), protoBuf (the editor has written a tutorial), custom protocols (byte splicing, in some IoT fields the standards are almost all byte splicing), of course there are many others, but I don’t […]

Netty optimization – extending the serialization algorithm in custom protocols

Netty optimization – extending the serialization algorithm in custom protocols 1. Optimization and source code 1. Optimization 1.1 Extend the serialization algorithm in custom protocols 1. Optimization and source code 1. Optimization 1.1 Extend the serialization algorithm in custom protocols Serialization and deserialization are mainly used in the conversion of message body. When serializing, the […]

Several issues about network protocols (3)

1. When there is a problem with the sent message, an ICMP error message will be sent to report the error. But what if there is also a problem with the ICMP error message? Answer: The following will not cause ICMP error messages: ICMP error messages (ICMP query messages may generate ICMP error messages); IP […]

Using Netty for protocol development: multi-protocol support and implementation of custom protocols

Building network applications using Netty: multi-protocol support and implementation of custom protocols Why is an agreement needed? Netty supports a rich set of protocols, allowing programmers to focus on business Custom protocol 1. Preparation 2. Introduction to codec abstract class 3. Codec implementation Why do we need an agreement? In TCP/IP, data transmission is carried […]

GPL, MIT, Apache… This article explains the differences between open source protocols

Directory 1. GPL, MIT, Apache… This article explains the differences between open source protocols 1.1. GPL-mandatory open source-linux 1.2. LGPL-allowing companies to sell GPL for money-Qt 1.3. MIT-a loose protocol popular with companies-vue 1.4. BSD-Don’t use my reputation for publicity! 1.5. Apache-Strengthening Legal Propaganda-PaddlePaddle 1.6. WTFPL-a weird protocol that I don’t even dare to write […]

Under Linux, based on TCP and UDP protocols, single-threaded communication server under different processes

C language implements single-thread communication server under different processes based on TCP and UDP protocols under Linux 1. TCP single-thread communication server Run the server first, then the client Enter “exit” to exit 1.1 server_TCP.c **#include <my_head.h> #definePORT 6666 #define IP “192.168.125.103” int main(int argc, const char *argv[]) {<!– –> // Create streaming socket int […]

Knowledge related to python-socket and websocket protocols

Socket, websocket communication protocol concepts socket communication Socket communication is based on the TCP/IP protocol and is suitable for transmitting large amounts of data and reliable connections. It is widely used in network programming, but it is not suitable for scenarios with high real-time requirements. In Python, socket and socketserver are two libraries used for […]