One-way communication method, device, user terminal and computer-readable storage medium
A one-way communication and storage technology, applied in the transmission system, electrical components, etc., can solve the problems of affecting transmission speed, increasing development cost, complexity, etc., and achieve the effect of reducing development cost, convenient research and development work, and simple technology
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0061] refer to figure 2 , the first embodiment of the present invention provides a one-way communication method, including:
[0062] Step S100, the sender creates a raw socket and constructs an Ethernet frame;
[0063] As mentioned above, it should be understood that the socket is different from TCP using the IP address of the host plus the port number on the host as the endpoint of the TCP connection. The original socket does not contain five kinds of information necessary for network communication: The protocol used for the connection, the IP address of the local host, the protocol port of the local process, the IP address of the remote host, and the protocol port of the remote process. Raw sockets only have the MAC addresses of the communicating parties. In addition, the receiver must also create a raw socket to receive and send Ethernet packets.
[0064] As mentioned above, it should be understood that the Ethernet frame is the format of the Ethernet frame, that is, t...
Embodiment 2
[0074] refer to image 3 , the second embodiment of the present invention provides a one-way communication method, based on the above figure 2 In the first embodiment shown, the step S200 "the sender sends a connection message to the receiver based on the original socket based on the Ethernet frame; wherein, the receiver receives the connection message After the message, return a response message according to the connection message to confirm the received message", it also includes:
[0075] Step S400, the receiver receives the connection message;
[0076] As mentioned above, after the receiver creates the original socket corresponding to the sender and constructs an Ethernet frame for message interaction based on the network card through the network, the sender sends a connection message to the receiver, and then receives The party receives the connection message.
[0077] Step S500, the receiver sets a confirmation sequence number for sending a response message to the se...
Embodiment 3
[0080] refer to Figure 4 , the third embodiment of the present invention provides a one-way communication method, based on the above image 3 In the second embodiment shown, the step S500 "the receiving party sets the confirmation serial number of sending a response message to the sending party according to the message serial number of the connection message, and sends a confirmation message to the sending party Text" includes:
[0081] Step S510, the receiver acquires the message sequence number in the connection message;
[0082] As mentioned above, the receiver obtains the message serial number in the connection message sent by the sender to send a confirmation message to the sender. After receiving the confirmation message, the sender can confirm that the sender has successfully established the connection with the receiver. connect.
[0083] Step S520, the receiver constructs the acknowledgment number of the response message sent to the sender according to the message ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com