Qt actual combat case (30) -- using QUdpSocket class to realize UDP network broadcast communication

1, Project introduction UDP network broadcast communication is realized by using QUdpSocket class. Its principle is shown in the figure below. The working principle of UDP is: the UDP client sends a certain length of request message to the UDP server. The message size limit is related to the protocol implementation of each system, but it ...

Posted by RandomEngy on Tue, 25 Jan 2022 04:17:25 +0100

TCP/UDP multi-channel open source framework based on KCP

1, Demand analysis At present, there are a lot of information about the principle and mechanism of KCP and the implementation of various versions of KCP on the Internet. I did the KCP correlation analysis of two articles before, which are the principle mechanism and performance testing practice. Our current project is a game with high real-tim ...

Posted by dan1956 on Thu, 20 Jan 2022 06:06:22 +0100

day21 network programming

day21 network programming (Part 2) Course objective: learn the necessary knowledge of network programming development. Today's summary: OSI7 layer modelTCP and UDPSticky bagBlocking and non blockingIO multiplexing 1. OSI layer 7 model The 7-layer OSI model may not be easy to understand, so let's explain it through a case: Suppose you ...

Posted by aliento on Wed, 19 Jan 2022 10:45:01 +0100

Understand Go language network programming [tcp, udp]

preface This article is not about http Net package, which only introduces the traditional network communication (the http.net package will be updated separately later) 1, Hierarchy of the Internet It is roughly divided into four layers. If subdivided, it can be divided into seven layers 1. Application layer Application layer, prese ...

Posted by Clandestinex337 on Wed, 19 Jan 2022 08:39:47 +0100

[STM32H7] Chapter 11 UDP client / server of ThreadX NetXDUO

Latest tutorial Download: ThreadX NetXDUO network protocol stack tutorial update record post, the first 11 chapters have been released (2022-01-03) - UCOS & ucGUI & EMWIN & embos & touchgfx & ThreadX - tough guy embedded Forum - Powered by Discuz! Chapter 11 UDP client / server of ThreadX NetXDUO This chapter explains the ...

Posted by MtPHP2 on Tue, 18 Jan 2022 16:22:58 +0100

[STM32F407] Chapter 11 UDP client / server of ThreadX NetXDUO

Latest tutorial Download: ThreadX NetXDUO network protocol stack tutorial update record post, the first 11 chapters have been released (2022-01-03) - UCOS & ucGUI & EMWIN & embos & touchgfx & ThreadX - tough guy embedded Forum - Powered by Discuz! Chapter 11 UDP client / server of ThreadX NetXDUO This chapter explains the ...

Posted by hinz on Tue, 18 Jan 2022 12:01:32 +0100

socket programming of OSI layer 7, TCP/IP layer 5, UDP and TCP (server and client), byte order conversion, implementation of multi process and multi-threaded server

1. The network is divided by coverage: LAN / man / WAN, Internet / Internet, Ethernet / token ring - networking mode 2. Each host must be represented by one in the network to realize point-to-point accurate communication IP address: ipv4: uint32_t unsigned 4-byte integer} DHCP/NAT} ipv6: uint_t addr[16]; Each data in network communication mu ...

Posted by VanHagar on Fri, 14 Jan 2022 05:03:31 +0100

Fundamentals of TCP/UDP programming

1, Brief description of TCP protocol 1. Introduction Transmission Control Protocol (TCP) is a connection oriented, reliable and byte stream based transport layer communication protocol, which is defined by IETF RFC 793. TCP is designed to adapt to the hierarchical protocol hierarchy supporting multi network applications. Paired processes ...

Posted by boby on Thu, 06 Jan 2022 16:57:41 +0100

Chapter 35 network application

PyQt5 provides QUdpSocket and QTcpSocket classes to implement UDP and TCP transmission protocols respectively. Both protocols can be used to create network client and server applications. The former (UDP) sends data from one host to another in the form of packets. It is only responsible for sending, but does not care whether the sending is succ ...

Posted by phychion on Thu, 06 Jan 2022 02:10:51 +0100

Simple server UDP version, familiar with its API [network]

By writing a simple server to understand the common API s of UDP Datagram oriented (sending and receiving data must be transmitted in a certain packet) Use transport layer UDP protocol UDP server program For a server program, the core process is divided into two steps: 1. Initialization (instantiate Socket object) 2. Enter the main loo ...

Posted by fxb9500 on Tue, 04 Jan 2022 17:09:20 +0100