Mobile terminal TCP communication method and device, equipment and storage medium

A mobile terminal and terminal technology, applied in transmission systems, electrical components, etc., can solve the problems of low running performance of application APP, difficult migration and reuse of H5 communication library, etc., to improve smooth experience, improve smooth operation, and reduce workload. Effect

Active Publication Date: 2021-11-12
PINGAN PUHUI ENTERPRISE MANAGEMENT CO LTD
View PDF7 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of the above, the present invention provides a TCP communication method, device, device and storage medium for a mobile terminal. The performance is low, and the technical problem that the H5 communication library is difficult to migrate and reuse

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
  • Mobile terminal TCP communication method and device, equipment and storage medium
  • Mobile terminal TCP communication method and device, equipment and storage medium
  • Mobile terminal TCP communication method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] 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. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0043] refer to figure 1 Shown is a schematic diagram of a preferred embodiment of the terminal 1 of the present invention.

[0044]The terminal 1 includes but not limited to: a memory 11 , a processor 12 , a display 13 and a network interface 14 . The terminal 1 is connected to the network through the network interface 14 to obtain raw data. Wherein, the network may be an intranet (Intra...

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 relates to the technical field of communication testing, and provides a mobile terminal TCP communication method and device, equipment and a storage medium. The method comprises the steps that a sub-thread is started, a transfer module is created based on the sub-thread, and communication between the sub-thread and a main thread of an APP is established; a socket is established by using the transfer module and the IP and the port of the target remote server in the configuration data, and TCP communication between the APP and the target remote server is established according to the socket; when the position information of the terminal changes, selecting the remote server closest to the position information of the terminal as a new target remote server; establishing a connection protocol between the H5 of the terminal and the APP, and establishing communication between the H5 and the APP according to the connection protocol, so that communication between the H5 and a new target remote server is established; the workload of processing the port data by the main thread of the application APP is reduced; and the multiplexing scene problem of the H5 is solved. The invention further relates to the technical field of block chains. The transfer module can be stored in a node of a block chain.

Description

technical field [0001] The present invention relates to the technical field of communication testing, in particular to a mobile terminal TCP communication method, device, equipment and storage medium. Background technique [0002] At present, in the multi-port communication scenario of the existing TCP network communication, the main thread of the application APP usually executes all the communication layers, and loops to determine whether each communication port has data to be processed. This will easily cause the terminal application APP to run poorly Low, and when the code execution of the communication layer is abnormal, it may cause the application APP of the terminal to be abnormal or even crash. [0003] In addition, in the terminal development process, whether it is iOS, Android, or H5, the packaged network communication library is used. Developers only need to use it out of the box, because these network communication libraries are developed based on each platform. ...

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 Applications(China)
IPC IPC(8): H04L29/08H04L29/06
CPCH04L67/1021H04L67/141H04L69/162
Inventor 陈晟豪
Owner PINGAN PUHUI ENTERPRISE MANAGEMENT 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