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

A data communication method, device and system

A data communication and data technology, applied in the network field, can solve problems that affect the performance of data communication systems and low communication efficiency

Active Publication Date: 2019-04-12
TENCENT TECH (SHENZHEN) CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present invention provides a data communication method to solve the problem that the current single-thread and multi-thread communication methods have low communication efficiency and affect the performance of the data communication system

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 data communication method, device and system
  • A data communication method, device and system
  • A data communication method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0026] The embodiment of the present invention implements port channel multiplexing based on the Java Development Toolkit (JDK), provides a high-performance data communication network framework, and can realize multi-threading between machines based on the network framework. , Efficient data communication.

[0027] figure 1 It shows the implementation flowchart of the data communication method provided by the embodiment of the present invention, which is described in detail as follows:

[0028] In step S101, N port channels are created, and the port channels are registered in the selector, where ...

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 is suitable for the technical field of networks, and provides a data communication method, device and system. The method comprises the following steps: creating N port channels, and registering the N port channels to a selector, wherein N is an integer greater than or equal to 1; monitoring port events corresponding to M first port channels in the N port channels through the selector, wherein the M first port channels are port channels which are connected with M communication opposite ends respectively, and M is an integer greater than or equal to 1 and smaller than or equal to N; performing data receiving and transmitting operation according to the monitored port events; after the data receiving and transmitting operation is finished, breaking the connection between the first port channels for performing the data receiving and transmitting operation and the corresponding communication opposite ends. By adopting the data communication method, device and system, multiplexing of port channels is realized based on a JDK (Java Develop Toolkit), a high-performance data communication network framework is provided, and multi-thread high-efficiency data communication among machines can be realized based on the network framework.

Description

technical field [0001] The invention belongs to the field of network technology, and in particular relates to a data communication method, device and system. Background technique [0002] In the process of computer data communication, for the single-thread communication method, only one client can successfully establish a connection at the same time, and other clients cannot connect and communicate with the server until the client communication is completed. The communication process of the client takes a long time, which will cause the connection of other clients to time out. [0003] For the multi-threaded communication method, the server first creates multiple threads, one of which is the main thread, which is responsible for establishing the network connection between the server and the client, and the other threads are slave threads, which are responsible for communicating data with each connected client. communication. In the above-mentioned multi-thread communicatio...

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): H04L5/00
Inventor 张春玮
Owner TENCENT TECH (SHENZHEN) 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