A method of tcp/udp traffic guidance for app on ios

Active Publication Date: 2017-02-22
成都超游猫科技有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Among them, the VPN agent can only guide all the traffic at the system level, and cannot only guide the traffic of interest
However, if you use the IOS API to set the Socks5 proxy, you can only use the upper-layer API of the IOS to make the Socks5 proxy effective. Using the native Socket TCP / UDP access cannot use the currently set Socks proxy.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The present invention will be further described in conjunction with specific embodiments.

[0031] As a specific example, a method for directing TCP / UDP traffic of App on IOS according to the present invention can encapsulate an SDK based on the IOS platform for calling by the App of IOS. The SDK has the following two functions: (1) Intercepting various functions of the native Socket. (2) Direct traffic TCP / UDP to proxy server.

[0032] Among them, intercepting each function of the native Socket includes the following steps:

[0033] Step 1: Establish a local proxy service; specifically include the following: the function obtains the addresses of functions such as Socket functions _connect, _send, _receive, etc., and replaces the address of the function with the function address in the proxy function (replacing the native Socket functions connect, send , receive and other functions are custom my_connect, my_send, my_receive functions); then create a local proxy servic...

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 method for guiding flow of a TCP / UDP of an App on an IOS. The method comprises the steps of firstly, intercepting all functions of a native Socket, then guiding the flow the TCP / UDP of the App to a remote proxy server, and sending data packets to a source IP address requested by the App, wherein the remote proxy server mainly forwards the data packets sent by the App. The method is used for only guiding the flow of the interesting TCP / UDP under the situation of all App calling on the IOS, so that the problems that only global proxy is carried out when a VPN is used on the IOS, a standard Sockets F proxy loses efficacy when the native Socket is used are solved.

Description

technical field [0001] The invention relates to TCP and UDP traffic guidance on IOS, especially the scope of action is App rather than global. Background technique [0002] Current data transmission protocols generally include TCP (Transmission Control Protocol, Transmission Control Protocol) and UDP (User Data Protocol, User Datagram Protocol). TCP is a transmission control protocol that provides connection-oriented, reliable byte stream services. Before the client and the server exchange data with each other, a TCP connection must be established between the two parties before the data can be transmitted. TCP provides functions such as timeout retransmission, discarding duplicate data, checking data, and flow control to ensure that data can be transmitted from one end to the other. UDP is a User Datagram Protocol, a simple datagram-oriented transport layer protocol. UDP does not provide reliability, it just sends the datagrams sent by the application to the IP layer, but...

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): H04L29/06H04L29/08
Inventor 兰劲
Owner 成都超游猫科技有限公司
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