有关udp广播的问题 [英] the question regarding udp broadcasting

查看:110
本文介绍了有关udp广播的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
谁能解释我如何使用c ++中的广播原理在我的LAN-网络上发现索尼摄像机.

Hii all,
Can any one explain me how to discover a sony camera on my LAN - Network, using broadcasting principle in c++.

推荐答案

最基本的形式,您发送了一个数据包发送给每个主机,每个存活的主机都会回复,但是您不能仅通过广播来确定设备是否是摄像机(即它将发送与接受广播的任何其他设备相同的数据包),以便确定是否设备是摄像头,您需要首先检查摄像头是否支持SNMP,然后可以使用此协议来识别摄像头,如果不支持,则可以尝试捕获正在发送的数据包并将其分解到应用程序层(它可能会发送有关其自身或至少其使用的协议的信息)
Well at its most basic form you send a packet to every host and every host who is alive will reply back, but you cannot determine if device is a camera just by a broadcast, (i.e it will send the same packet as any other device who accepts broadcasts) in order to find out if the device is camera you need to check first if the camera supports SNMP, then you can use this protocol to identify the camera,if it doesn''t you can try to capture the packets it is sending and dissect them to the application layer (it will probably send information about its self or at least the protocol its using)


这篇关于有关udp广播的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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