C# SocketException with Multicast on XP

六眼飞鱼酱① 提交于 2019-12-05 10:57:12

You need to bind the socket to an interface before setting the SocketOptionName.AddMembership option.

Edit: Just verified this in the MSDN docs (though it says only up to NT4):

Windows 98, Windows NT 4.0 Platform Note: You must call the Bind method before using AddMembership as the optionName parameter.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!