ITeye博客

aolan1108的博客

aolan1108 · 共 1 篇文章

获取iOS设备当前ip地址 .

本文转自: http://blog.csdn.net/favormm/article/details/6858330 第一种方法是用系统api的方式获取,如下: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/ioctl.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <arpa/inet.h> #in…

2012-04-04 17:51 · IOS应用开发 · 评论(1)