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?