Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2013-09-18
SHENZHEN TENCENT COMP SYST CO LTD
View PDF4 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the embodiment of the present invention is to provide a network communication method, aiming at solving the problem of low performance of network data transmission and reception when the existing network data transmission and reception technology directly invokes the system process in the user state

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
  • Network communication method and system
  • Network communication method and system
  • Network communication method and system

Examples

Experimental program
Comparison scheme
Effect test

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...

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 belongs to the network communication field and provides a network communication method and a system. The method comprises the following steps that: a network data transceiving thread and an interception interface are associated, and the interception interface is added to an epoll array; the interception interface intercepts events in the epoll array, and when the interception interface intercepts an event needing transceiving data, different events are processed and the network data transceiving threads associated with the different events are notified to transmit and receive data; and the network data transceiving thread transmits and receives network data according to notification of the interception interface. In the embodiment of the invention, the interception interface is established in the system kernel to intercept the events in the epoll array, to notify the network data transceiving thread to export a socket-associated function symbol table, and to transmit and receive the data by using a standard system call corresponding to the function symbol table in the kernel, so that the transceiving of the data in the kernel process is realized.

Description

technical field [0001] The invention belongs to the field of network communication, in particular to a method and system for sending and receiving network data. Background technique [0002] In the architecture of the network system, sending and receiving data is a very important issue. The timeliness of sending and receiving data directly affects the quality of the network. The existing technology sends and receives data directly in the user state to directly call the system process to send and receive data. Although this method is convenient and direct, it needs to call a system process every time data is received or sent, which causes excessive pressure on the system and low performance of network data transmission and reception. Contents of the invention [0003] The purpose of the embodiments of the present invention is to provide a network communication method, aiming at solving the problem of low performance of network data transmission and reception when the existi...

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
IPC IPC(8): H04L12/863
CPCH04L69/162H04L43/08H04L43/10
Inventor 李文征钟超宇陈健吴悦谢明
Owner SHENZHEN TENCENT COMP SYST CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products