I am working with a library called GCDAsyncUDPSocket and there is method that required me to pass the IP address and port as NSData.
Thanks for the help.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the header file:
So, you need a
sockaddr:Here’s some documentation on
sockaddr– http://www.beej.us/guide/bgnet/output/html/multipage/sockaddr_inman.html