Table of Contents communication introduce Why should there be communication? the nature of communication How to communicate pipeline system V posix standard Signal pipeline introduce anonymous pipe Principle introduce process Implement — pipe() function prototype parameter return value mock code Features Used for communication between parent and child processes Provide access control When the buffer […]
Tag: duplex
Use PHP WorkerMan to build WebSocket full-duplex group chat communication (2)
A long time ago, before the WebSocket protocol was invented, when people made dynamic updates of real-time data on the Web, they generally used polling and long connections (Long Polling) to achieve it. Probably: Polling: The client continuously sends HTTP requests to the server, and the server returns the latest data. Long connection: The client […]
STM32 | SPI full-duplex communication problem based on hal
Problem Description Recently, while conducting SPI full-duplex communication between two stm32 chips, I found that the answers to this kind of communication on the Internet are not very comprehensive. Most of them are based on interrupt processing to send and receive data. After consulting the manual, I found that polling can be used. Query the […]
Protocol: WebSocket full-duplex communication network protocol
Project scenario: WebSocket is a network protocol for full-duplex communication between client and server. It allows real-time, bidirectional data transfer over a single TCP connection. In actual projects, specific requirements were encountered and the WebSocket network protocol was used. My requirement is that I need to continuously call the third-party interface, and the frequency and […]
C++ implements websocket single server single client full duplex communication (based on boost!!!)
Own environment: ubuntu18.04 + gcc7.5.0 + boost1.7,3 Environment configuration gcc or g++ are generally available, here mainly introduces the configuration method of boost Execute the following code: wget https://boostorg.jfrog.io/artifactory/main/release/1.73.0/source/boost_1_73_0.tar.bz2 –no-check-certificate tar xvf boost_1_73_0.tar.bz2 cd boost_1_73_0 ./bootstrap.sh –prefix=/usr ./b2 sudo ./b2 install cat /usr/include/boost/version.hpp | grep “BOOST_LIB_VERSION” After installation, it is found that an error will […]
(9) Qt — network programming (half-duplex communication)
Directory 1. review 1.1 UDP and TCP 1.2 IP address and port number 2. Preparation 3. Programming content 1. Review 1.1 UDP and TCP The same point of UDP and TCP protocols: both exist in the transport layer TCP (Transmission Control Protocol): It is a connection-oriented transport layer protocol, which can provide high-reliability communication (that […]
WebSocket duplex communication enables users to log in and kick each other on different devices Server implementation
WebSocket duplex communication enables users to log in and kick each other on different devices. Server implementation introduction 1 Introduction to WebSocket 2 Server implementation 2.1 Add project dependencies 2.2 Create new ServerEndpointExporter and RedissonClient configuration beans 2.3 Create a new WebSocketServer component class 2.4 When the same user logs in, add the logic of […]
A full-duplex communication protocol implemented by C#.net TcpClient
First understand TCP, also known as the three-way handshake protocol, that is, the first time to confirm whether the server can connect, the second time to send information to the server, and then the server responds, and so on repeatedly. At this time, you find that it seems that only the client can send me […]
[Solved] When IDEA is conducting UDP half-duplex communication, the client input is normal, and the server accepts the solution that prints out garbled boxes.
During UDP half-duplex communication, the data received by the server appears as client data followed by a large series of block codes, as shown in the figure Client input works fine: The server accepts a box with garbled characters Client code: package javaweb2; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.SocketException; import java.util.Scanner; […]