ios-How to parse the IP address (sockaddr *) from the boujour?

Source: Internet
Author: User

1. PrefaceBefore a netizen with my message said: How to parse out the Boujour parsing the array in the IP address? Because the addresses is an array after parsing the boujour itself, how do we parse the IP address we need from this array? For the use of boujour, readers can refer to an article I wrote earlier ios- Apple 0 Configure the use of network protocol Bonjour? 2. Convert the data in the array to SOCKADDR

2.1. After the Boujour parsing, it will enter the following proxy method

In this method I throw a notice and send the data out

2.2. After hearing the notification we begin to convert the data in the array to sockaddr

3. How to convert socketaddr into a string

Complete the above two steps we pass through the Boujour IP address and successfully parse out, then what to do.

Clear Saup
Source: http://www.cnblogs.com/qingche/
This article is copyright to the author and the blog Park is shared, welcome reprint, but must retain this paragraph statement, and in the article page obvious location to give the original text connection.

ios-How to parse the IP address (sockaddr *) from the boujour?

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.