在winows enivronment下用VC ++将连接的设备发送到我的网络 [英] Discove connected devices to my network in VC++ under winows enivronment

查看:84
本文介绍了在winows enivronment下用VC ++将连接的设备发送到我的网络的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我遇到了在windows os环境下使用c / c ++在网络中查找连接设备的要求。是否有任何窗口库满足我的要求



任何帮助/建议将不胜感激



< b>我尝试了什么:



试图在vc ++中实现这个但是遇到了一些困难

Hi All,

I came across the requirement of finding connected devices in my network using c/c++ in windows os environment. is there any windows library that full fill my requirements

Any help/suggestions would be appreciated

What I have tried:

tried to implement this in vc++ but getting a kind of difficulty

推荐答案

没有可靠的方法(除了在路由器上执行读取ARP缓存和/或读取DHCP服务器上的当前列表的应用程序)。但您可以尝试使用 IcmpSendEcho功能(Windows) ping本地网络中的所有IP地址[ ^ ]。



但请注意,某些设备即使在线时也可能无法响应(ICMP Echo可能会被防火墙过滤掉)。



For Windows系统(以及运行Samba的Linux系统)您也可以使用NetBIOS扫描。
There is no reliable method (besides executing an application on the router that reads the ARP cache and/or reading the current list on the DHCP server). But you can try to ping all IP adresses within your local network using the IcmpSendEcho function (Windows)[^].

But note that some devices might not respond even when online (ICMP Echo might be filtered by Firewalls).

For Windows systems (and Linux sytems running Samba) you might also use a NetBIOS scan.


这篇关于在winows enivronment下用VC ++将连接的设备发送到我的网络的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆