Home > Back-end >  Win10 don't create the root of the multicast?
Win10 don't create the root of the multicast?

Time:09-25

Under the Windows 10 load winsock2

WORD wVersionRequested;
WSADATA WSADATA;
WVersionRequested=MAKEWORD (2, 2);

If (WSAStartup (wVersionRequested, & amp; WsaData)!=0)
{
ErrorRe=INIT_ERROR_LOADSOCKET2;
return false;
}


Create a root control plane and a root data plane of multicast
DWORD dwFlags=WSA_FLAG_OVERLAPPED;
DwFlags |=(WSA_FLAG_MULTIPOINT_C_ROOT | WSA_FLAG_MULTIPOINT_D_ROOT);

SocketTem=WSASocket (AF_INET, SOCK_DGRAM, IPPROTO_UDP, LPW, 0, dwFlags);

The returned socketTem INVALID_SOCKET is
Int er=WSAGetLastError ();
Er==10022


When WSCEnumProtocols find support IPPROTO_UDP

_WSAPROTOCOL_INFOW {
DWORD dwServiceFlags1

DwServiceFlags1==132617


Why don't create the root of the multicast?


  • Related