A method of network communication
A technology of network communication and network, applied in the field of network
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


