Network communication method and system
A technology for network communication and network data, applied in the field of sending and receiving network data, and can solve problems such as low performance of sending and receiving network data
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0020] figure 1 It shows the implementation flowchart of the network communication method provided by the embodiment of the present invention, which is described in detail as follows:
[0021] In step S101, create a network data sending and receiving thread and a listening interface in the system kernel, associate the network data sending and receiving thread with the listening interface, and add the listening interface to the epoll queue.
[0022] In the embodiment of the present invention, a network data sending and receiving thread is created in the system kernel, and the thread is used for the system to receive various types of data sent by the client through the network, and return the processed data to the client. And create a listening interface in the kernel of the system, bind the listening interface with the network data sending and receiving thread, and add the listening interface to the epoll queue, so that the listening interface circulates in the epoll queue run...
Embodiment 2
[0037] Such as Figure 5 Shown is a structural diagram of the network communication system provided by the embodiment of the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown, including:
[0038] The listening interface module 21 is used to associate with the network data sending and receiving thread module and join the epoll queue, listen to events in the system epoll queue, process different events that need to send and receive data, and notify the network data sending and receiving thread module to send and receive data .
[0039] The network data sending and receiving thread module 22 is configured to associate with the listening interface module 21 and send and receive network data according to the notification of the listening interface module 21 .
[0040] Wherein the listening interface 21 specifically includes:
[0041] The association module 211 is configured to associate with the netw...
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