Data transmission method and device

A data transmission method and data technology, applied in the field of data transmission, can solve problems such as inability to accurately push data, and achieve the effect of accurate data push

Active Publication Date: 2016-12-07
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a data transmission method and device to at least solve the technical problem of being unable to accurately push data

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
  • Data transmission method and device
  • Data transmission method and device
  • Data transmission method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] According to the embodiment of the present invention, a method embodiment that can be executed by the device embodiment of the present application is provided. It should be noted that the steps shown in the flow chart of the accompanying drawings can be implemented in a computer system such as a set of computer-executable instructions and, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0031] Optionally, in this embodiment, the above data transmission method can be applied to figure 1 In the hardware environment formed by the terminal 102 and the server 104 shown. Such as figure 1 As shown, the guest terminal 102 is connected to the server 104 through a network. The above-mentioned network includes but is not limited to: a mobile communication network, a wide area network, a metropolitan area network or a local area network. The terminal 102 ca...

Embodiment 2

[0098] According to the embodiment of the present invention, there is also provided a data transmission device for implementing the above data transmission method, the data transmission device is mainly used to implement the data transmission method provided in the above content of the embodiment of the present invention, the following describes the embodiment of the present invention Provided data transmission device for specific introduction:

[0099] Figure 6 is a schematic diagram of a data transmission device according to an embodiment of the present invention, such as Figure 6 As shown, the data transmission device mainly includes:

[0100] The creating unit 60 is used for invoking js logic to create a long connection using full-duplex communication when the target web page is opened, wherein the target web page is nested in the iframe tag of the first web page.

[0101] The first transmission unit 62 is configured to transmit the first data to the server through the...

Embodiment 3

[0122] According to an embodiment of the present invention, a terminal for implementing the above data transmission method is also provided, such as Figure 7 As shown, the terminal mainly includes a processor 701, a camera 702, a display 703, a data interface 704, a memory 705 and a network interface 706, wherein:

[0123] The camera 702 is mainly used to collect user's identity information and avatar information.

[0124] The data interface 704 mainly transmits the data obtained by the third-party tool to the processor 701 through data transmission.

[0125] The memory 705 is mainly used for the logic of the webpage and the user's operation behavior data.

[0126] The network interface 706 is mainly used for network communication with the server to provide support for data transmission.

[0127] The display 703 is mainly used to display the target webpage and the second data.

[0128] Processor 701 is mainly used to perform the following operations:

[0129] When opening...

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 data transmission method and device. The method comprises the following steps that: a first webpage calls a js logic in order to create a long connection adopting full duplex communication; the first webpage transmits first data to a server through the long connection, wherein the first data are captured by a target webpage, and the target webpage is embedded in an iframe tag of the first webpage; the first webpage receives second data pushed by the server through the long connection, wherein the second data are generated according to the first data reported by the first webpage, and the first webpage does not send a data request used for requesting the second data to the server before the first webpage receives the second data; and the first webpage transmits the second data to the target webpage. Through adoption of the data transmission method and device, the technical problem that a message cannot be pushed to the first webpage in real time is solved.

Description

technical field [0001] The present invention relates to the field of data transmission, in particular to a data transmission method and device. Background technique [0002] In the prior art, during data transmission, the server usually actively pushes data to the first web page, and the first web page is only responsible for receiving the data pushed by the server. The data pushed by the server is obtained by the server based on the data of multiple users collected by the multiple first webpages. However, the pushed data required by each user is different, and the existing server cannot accurately push the data to the user. [0003] For the above problems, no effective solution has been proposed yet. Contents of the invention [0004] Embodiments of the present invention provide a data transmission method and device to at least solve the technical problem that data cannot be pushed accurately. [0005] According to an aspect of the embodiments of the present invention, ...

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): H04L29/06
CPCH04L65/40H04L65/4061
Inventor 徐文超沐建涛张荣嵇海波
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products