Windows UDP sockets: recvfrom() fails with error 10054

https://*.com/questions/34242622/windows-udp-sockets-recvfrom-fails-with-error-10054

#include <Winsock2.h>
#include <Mstcpip.h>
#include <stdio.h> #pragma comment(lib, "ws2_32.lib")
#define SIO_UDP_CONNRESET _WSAIOW(IOC_VENDOR, 12) BOOL bNewBehavior = FALSE;
DWORD dwBytesReturned = ;
WSAIoctl(iSock, SIO_UDP_CONNRESET, &bNewBehavior, sizeof bNewBehavior, NULL, , &dwBytesReturned, NULL, NULL);
上一篇:Scala_继承


下一篇:0022 Java学习笔记-面向对象-继承、多态、组合