开发者

Practical C++ Sockets or Virtual machine?

开发者 https://www.devze.com 2023-03-02 08:50 出处:网络
I\'m trying to use this library to the sockets in c + +: Practical C++ Sockets (http://cs.baylor.edu/~donahoo/practical/CSockets/practical/)

I'm trying to use this library to the sockets in c + +: Practical C++ Sockets (http://cs.baylor.edu/~donahoo/practical/CSockets/practical/) I tried a simple example of a multicast sender and receiver multicast

  • on Mac OSX I send and receive multicast msg.
  • I create开发者_开发技巧d a virtual machine with Windows XP and I feel the same example.

the message is sent but the receiver does not receive anything. In your opinion, is a problem of virtual machine or library on windows? (if I try to sniff packets on the virtual machine I see the message sent)


multicast only works on the same subnet so make sure your virtual machine has the same subnet as your main computer. This is why Bonjour by apple only works with devices on the same subnet because it uses multicast.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号