c++ 获取本地ip地址
摘要:
最终版本:采用指针传参数,不使用别名形式。#include #include //gethostbyname#include //ntohl#include using namespace std;int get_local_ip(int *ip) { char hostname[12... 阅读全文
posted @ 2015-07-24 16:04 雨渐渐 阅读(24860) 评论(0) 推荐(1)
posted @ 2015-07-24 16:04 雨渐渐 阅读(24860) 评论(0) 推荐(1)
posted @ 2015-07-24 11:58 雨渐渐 阅读(1080) 评论(0) 推荐(0)