码迷,mamicode.com
首页 > Windows程序 > 详细

Windows UDP sockets: recvfrom() fails with error 10054

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

标签:ons   flow   efi   return   win   stack   define   ioc   erro   

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

标签:ons   flow   efi   return   win   stack   define   ioc   erro   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!