主题 : Windows CE下显示本地IP地址的小工具 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 296
精华: 2
发帖: 28
金钱: 340 两
威望: 70 点
综合积分: 96 分
注册时间: 2008-03-14
最后登录: 2011-04-13
楼主  发表于: 2008-05-03 23:39

 Windows CE下显示本地IP地址的小工具

在测试的时候抓取Windows CE下本地IP地址的小工具。



图中简单实现了GPRS 通道的Web 。




http://www.cookbus.com/?action=show&id=59
博客文摘:
www.CookBus.com
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2008-05-04 09:41
不错,谢谢分享。希望能看到你们越来越多的实践成果
另外,我有一点疑问,这个工具是否支持多个网络连接,比如开发板上同时存在GPRS和以太网?能否把这个工具的工作原理也分享给大家?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 296
精华: 2
发帖: 28
金钱: 340 两
威望: 70 点
综合积分: 96 分
注册时间: 2008-03-14
最后登录: 2011-04-13
2楼  发表于: 2008-05-04 10:16
只是昨晚做测试时需要一个板子的IP地址,环境问题有没有其他方法,所以顺便写了一个。
原理就是

使用gethostbyname()由域名或主机名得IP地址。
博客文摘:
www.CookBus.com
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2008-05-04 10:56
我不确定WInCE上是否有ipconfig这样的工具,我觉得如果有的话,可以参考它的实现方法,也许这样可以支持系统里所有的网络连接
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2008-05-04 12:09
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 296
精华: 2
发帖: 28
金钱: 340 两
威望: 70 点
综合积分: 96 分
注册时间: 2008-03-14
最后登录: 2011-04-13
5楼  发表于: 2008-05-04 12:24
对的
但是shell没有烧进,的时候就……
博客文摘:
www.CookBus.com