首页 > Windows开发 > 详细

Windows UDP sockets: recvfrom() fails with error 10054

时间:2017-05-24 20:10:00      阅读:418      评论:0      收藏:0      [点我收藏+]

https://stackoverflow.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 = 0;
WSAIoctl(iSock, SIO_UDP_CONNRESET, &bNewBehavior, sizeof bNewBehavior, NULL, 0, &dwBytesReturned, NULL, NULL);

 

Windows UDP sockets: recvfrom() fails with error 10054

原文:http://www.cnblogs.com/hangj/p/6900687.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!