"Reading notes" iOS network-testing and manipulating network traffic

Source: Internet
Author: User

First, the network traffic is observed.

The behavior of observing network traffic is called sniffing or packet analysis.

1, sniff hardware.

Capturing packets from the iOS emulator does not require special hardware or network configuration. If you need to capture these packets, you can use sniffer software to listen for loopback devices or interfaces for connecting to the network.

2, Sniff software.

OS X comes with a command-line packet sniffer topdump, which is the foundation of most other sniffers in OS X.

1) capture using tcpdump.

2) capture using Wireshark.

Second, operating network traffic

1, configure Charles

2,http Breakpoint.

3, rewrite the rule.

Third, simulate the network condition.

Network packet capture and HTTP proxy tools are ideal for visualizing network traffic in a visual manner. Another tool that should be adapted and familiar to all iOS developers ' toolboxes is the network traffic modifier. It is used to simulate low-speed or unreliable networks.

1,os X Line offers an excellent flow modifier called network Link Conditioner (NLC).

Reference: "iOS network advanced programming-iphone and ipad Enterprise application Development"

  

"Reading notes" iOS network-testing and manipulating network traffic

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.