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

Distribution and processing method and system for long-connection network data in IOS system

A network data and processing method technology, applied in transmission systems, electrical components, etc., can solve problems such as inefficiency in the program development process, and achieve the effects of efficiency improvement, efficient code processing, and efficient decryption and encryption

Active Publication Date: 2018-10-23
WUHAN DOUYU NETWORK TECH CO LTD
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] For long-connected network data, it is suitable for TCP network connections (four-layer model, the fourth layer application layer, the third layer transport layer, the second layer network layer and the first layer network interface) to receive messages and send messages and perform processing, and because the object-c code used by the IOS system is relatively closed, it will make the program development process relatively inefficient in the long-connected network data distribution process

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
  • Distribution and processing method and system for long-connection network data in IOS system
  • Distribution and processing method and system for long-connection network data in IOS system
  • Distribution and processing method and system for long-connection network data in IOS system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0054] figure 1 It is a schematic diagram of the steps of the long connection network data distribution and processing method in the IOS system in the embodiment of the present invention.

[0055] Such as figure 1 As shown, the network data distribution and processing method of this embodiment has steps S1-S5.

[0056] Step S1, using C++ code to write the network interface layer of the IOS system client to send and receive the network data of the long connection.

[0057] figure 2 It is a schematic diagram of the sending and receiving steps of the network data of the persistent connection performed by the network interface layer in the embodiment of the present invention.

[0058] The present invention is aimed at mobile intelligent terminal or desktop computer IOS application program, in order to carry out the network communication of long connection in the third layer transmission layer, the second layer network layer and the first layer network interface of network commun...

specific example

[0128] void SetCallback(ICallback*callback);

[0129] This interface function is used to set the concrete instance of ICallback for the application layer.

[0130] As for the bottom layer of the C++ layer, it is used to realize the purpose of the SetCallback function storing the interface instance set by the application layer.

[0131] For the C++ layer, define a global ICallback pointer to store the application setting instance:

[0132] ICallback*g_callback = NULL;

[0133] Then set it in SetCallback.

[0134]

[0135] For the data of the network decryption server and the data of the analysis server written before, after the analysis is completed, the callback function callback will be called to pass the message to the object-c code of the application layer. The specific code is as follows:

[0136] g_callback->OnPush(type, encryptbuf);

[0137] Among them, OnPush is the interface written.

[0138] Where type is the type of the message.

[0139] Among them, encryptb...

Embodiment 2

[0170] Figure 4 It is a schematic structural diagram of a long connection network data distribution and processing system in the IOS system in the embodiment of the present invention.

[0171] The persistent connection network data distribution and processing system in the IOS system provided by this embodiment will be described in detail below with reference to the accompanying drawings.

[0172] Such as Figure 4 As shown, the long-connection network data distribution and processing system 100 in the IOS system includes a network interface module 101 , a decryption and unpacking module 102 , a delivery module 103 , and a push module 104 .

[0173] The network interface module 101 is used for constructing a network interface of C++ codes to send and receive long-connected network data.

[0174] The decryption and unpacking module 102 is used to decrypt and unpack the received network data.

[0175] The transfer module 103 is configured to transfer the network data receive...

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 distribution and processing method and system for long-connection network data in an IOS, and relates to the technical field of communication control. The method comprises the steps that a network interface layer of an IOS client is written with a C++ code to receive and transmit the long-connection network data; the received network data is decrypted and unpacked; the network data received by a C++ layer network is transmitted to an object-c code layer of an application layer; and the network is pushed to an application layer of the IOS from the object-c code layer.The application layer only needs to process distribution of the message types and process the different message types, message receiving and decryption are both achieved with a C++ underlying code, and the overall result is that the development process of the IOS application layer becomes simpler, and the efficiency is improved; and on the other hand, by using the C++ code to write, the characteristics of a cross-system platform can be provided, and the C++ code can be applied to system platforms such as Android, Windows, linux and IOS. The invention further discloses the corresponding system.

Description

technical field [0001] The invention belongs to the technical field of communication control, and more specifically relates to a method for distributing and processing long-connected network data on an IOS system platform. Background technique [0002] At present, along with the popularity of Apple's IOS (iMac) smart phones, the corresponding application programs adapted to the IOS system are becoming more and more abundant. More and more functions of the program must also mean that the complexity of the program is also getting higher and higher. [0003] Specifically, for an IOS device, its device hardware is limited, so for a program developer of the IOS system, it is necessary to continuously optimize its performance and improve its execution efficiency. Any IOS application program will have a network communication function. Specifically, for a webcast APP, a typical network communication function is to send and receive barrage messages through network communication. ...

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/06H04L29/08
CPCH04L63/0428H04L67/141H04L67/34H04L69/162H04L69/329H04L67/55
Inventor 周志刚
Owner WUHAN DOUYU NETWORK TECH 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