Data packet transmission method and device
A transmission method and data packet technology, applied in the field of data packet transmission method and device, can solve problems such as private data leakage, achieve the effect of improving security and increasing the difficulty of fraudulently obtaining data
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0055] see figure 1 as shown, figure 1 It is a flow chart of a data packet transmission method provided in this embodiment. Among them, when the client accesses the server-side data, it needs to establish a long connection. After the long connection is established, this embodiment needs to do the following steps:
[0056] Step 101, determine the current data packet to be sent;
[0057] Step 102, inserting a first verification code into the data packet, the first verification code can be provided by the server, wherein, each time the server receives a legitimate data packet, it generates a random character string and returns it to the client , so that when the client needs to send a data packet to the server again in the same long connection, the random character string received from the server after sending the last data packet is inserted into the current data packet as the first verification code;
[0058] Step 103, sending the data packet carrying the first verification ...
Embodiment 2
[0073] Because in the specific implementation process of the first embodiment, the server needs to have a corresponding program to be able to perform data communication with the client. Such as figure 2 as shown, figure 2 A flow chart of another data packet transmission method provided by this embodiment is shown. After the client establishes a long connection with the server, the server needs to perform the following steps:
[0074] Step 201, receiving the data packet currently sent by the client, the data packet includes a first verification code; wherein, the first verification code is generated and returned to the server after receiving the previous data packet in the same long connection Client's random string;
[0075] Step 202, determine the process where the long connection established for the client is located, and take out the verification reference information from the process; the verification reference information is generated and saved after receiving the la...
Embodiment 3
[0096] Corresponding to the data packet transmission method provided in Embodiment 1, this embodiment of the present invention also provides a data packet transmission device, see image 3 , the device can include:
[0097] The data packet to be sent determining unit 301 is used to determine the current data packet to be sent after establishing a long connection with the server;
[0098] The first verification code inserting unit 302 is configured to insert a first verification code into the data packet, wherein the first verification code is provided by the server, and the server generates random characters each time it receives a legitimate data packet string, and return it to the client, so that when the client needs to send a data packet to the server again in the same long connection, it will insert the random string received from the server after sending the last data packet as the first verification code the current data packet;
[0099] A data packet sending unit 303...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 