Unlock instant, AI-driven research and patent intelligence for your innovation.

A method of network communication

A technology of network communication and network, applied in the field of network

Active Publication Date: 2021-11-30
北京未尔锐创科技有限公司
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] In view of this, the present invention provides a network communication method to solve the problems existing in socket communication in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method of network communication
  • A method of network communication
  • A method of network communication

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0059] The network communication method provided by this application is as follows: figure 1 As shown, the method includes:

[0060] Step 105, the sending end initializes the broadcast sending socket, and the receiving end initializes the broadcast receiving socket;

[0061] In step 110, the sender broadcasts the topic to the network, which can be a local area network; the topic can be a message tag pre-agreed between the sender and the receiver, for example, an identifier consisting of numbers or letters.

[0062] Step 115, the receiving end receives the broadcast topic from the network, and performs topic matching; the topic matching is mainly used to complete the confirmation of whether the receiving end needs to subscribe to the topic;

[0063] Step 120, the receiving end sends a response to subscribe to the topic according to the topic matching result; the matching result can be divided into success and failure, for example, 0 can indicate failure, and 1 can indicate suc...

no. 2 example

[0072] The network communication method provided by this application is as follows: figure 2 As shown, the method includes:

[0073] Step 205, the sending end initializes the broadcast receiving socket, and the receiving end initializes the sending socket;

[0074] Step 210, the receiving end broadcasts the topic to the network, the network may be a local area network, and the topic may be a pre-agreed parameter between the sending end and the receiving end;

[0075] Step 215, the sending end receives the broadcast topic from the network, and performs topic matching; the topic matching is mainly used to confirm whether the sending end can send the data corresponding to the topic; the matching results include matching success and matching failure;

[0076] Step 220, the sender initializes the content listening socket, and waits for a connection request for subscribing to the topic;

[0077] Step 225, the receiver initializes the connection socket, and sends a connection requ...

no. 3 example

[0081] The network communication method provided by this application is as follows: image 3 As shown, the method includes:

[0082] Step 305, the sending end initializes the broadcast receiving socket; the receiving end initializes the broadcast sending socket;

[0083] Step 310, the receiving end broadcasts the topic to the network, and the network can be a local area network;

[0084] Step 315, the sending end receives the broadcast topic from the network, and performs topic matching;

[0085] Step 320, the sending end sends a response to the topic of the broadcast according to the topic matching result; the matching result can be divided into success and failure, for example, 0 can indicate failure, and 1 can indicate success; the sending end can include the matching in the response Result; it should be noted that if the matching fails, the receiving end may no longer perform the following steps related to the sending end; in this embodiment, the matching result is consi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a network communication method. The method includes: initializing a broadcast sending socket; broadcasting a topic to the network; receiving a response for subscribing to the topic; initializing a content monitoring socket and waiting for a connection request for subscribing to the topic; Receives a connection request to subscribe to the topic. The invention shields the underlying implementation, so that users no longer care about the technical details of the network and connection, but only need to care about the data interaction itself.

Description

technical field [0001] The invention relates to the network field, in particular to a network communication method. Background technique [0002] Socket is an interactive mechanism for computer nodes to communicate between networks. Although it has not been included in the standard specification by the standard organization, it is the de facto standard in computer network communication. The operating systems currently used have implemented sockets. word communication library. [0003] The socket establishes a network connection between nodes by binding addresses and port numbers between communication nodes, and then sends and receives data packets for network communication. [0004] Although the socket-based computer network communication can adapt to the network communication of most computing architectures and operating systems, the object of the socket is the data packet in the network transmission. For most applications, the socket The work object is too low-level and ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/06
CPCH04L69/162
Inventor 付宗波高峰侯涛
Owner 北京未尔锐创科技有限公司