Bonjour Programming on the iPhone

#include <arpa/inet.h>
#include <netinet/in.h>

struct sockaddr_in {
   u_char   sin_len;
   u_char   sin_family;
   u_short  sin_port;
   struct   in_addr sin_addr;
   char sin_zero[8];
};

char    *inet_ntoa __P((struct in_addr)); /* in libkern */


Learn More :