????? WinSock Recvfrom() ???? WSAECONNRESET ????? ?? ??? ?? ????

?????? ????????? ?????? ?????????
???? ???????: 263823 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

???????

?? ???? ??????? Windows 2000 ?????? ???????? ???? ?????? ?????? (UDP) ?? ?? ???? ?????? ?? ??????? WSAECONNRESET.

?????

??? ?? ????? ????? ??? ?????? ???????? ????? ?????? sendto ?? ??????? "???? ICMP ??? ????? ??????" ??????? ??? readfds ? ???? ???????? 1 ?? ??????? ?????? recvfrom ??????? ?? ???? ?? ??????? ??? (10054) WSAECONNRESET. ?? Microsoft Windows NT 4.0 ???? ??? ?????? ?????? ??? ???? ?? ????.

????

??? ??? ???????? ??? ?????? ??? ???? ???? ???? ????? ??????? Windows 2000. ????? ?? ?????????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
260910????? ?????? ??? ???? ???? ???? ????? ??????? Windows 2000
??? ?? ????? ???? ????? IOCTL ???? "SIO_UDP_CONNRESET" ????? ?? ???? ??????? Windows 2000. ??? ??????? ??? IOCTL ??? ????? ????? ???????? ???? ??? ????? ??????? Windows 2000 ?????? ??? Windows NT 4.0 ?????? ??????. ???? ??????? Microsoft Windows 98 ? Microsoft Windows 95 ?? Windows NT 4.0 ?? ???? ?? ??? ????? IOCTL ?????? ???. ???????? ??? rewriting ??????? ????? ??, ?????? ??????? ?????? ?????? ???? ?????? ??? ?????? ?? ??? ???????.

???? ????????? ???????? ???????? ????? ???? ???????? ???????? WSAIoctl ?? ??? ?????? SIO_UDP_CONNRESET ?????? ??? ???? Windows NT 4.0 ??????.
DWORDdwBytesReturned = 0;
BOOLbNewBehavior = FALSE;
DWORDstatus;

// disable  new behavior using
// IOCTL: SIO_UDP_CONNRESET
status = WSAIoctl(sd, SIO_UDP_CONNRESET,
&bNewBehavior, sizeof(bNewBehavior),
                   NULL, 0, &dwBytesReturned,
                   NULL, NULL);

if (SOCKET_ERROR == status)
{
DWORD dwErr = WSAGetLastError();
if (WSAEWOULDBLOCK == dwErr)
{
// nothing to do
return(FALSE);
}
else
{
printf("WSAIoctl(SIO_UDP_CONNRESET) Error: %d\n", dwErr);
return(FALSE);
}
}
				
?? ???? ?????? ??? ????? ??? ???, ??? ?? Mswsock.h ???? ????? ????? ????? SIO_UDP_CONNRESET ?? ?????? ????? ????? ??? ?????? ?? ????????? ????????.
// MS Transport Provider IOCTL to control
// reporting PORT_UNREACHABLE messages
// on UDP sockets via recv/WSARecv/etc.
// Path TRUE in input buffer to enable (default if supported),
// FALSE to disable.
#defineSIO_UDP_CONNRESET_WSAIOW(IOC_VENDOR,12)
				
?????? ??????? ?????? ?????? ?? ??? ??????? ?? ??????? ??? ?? ?? ?? ??? ????? ????? ???????? ???????? IOCTL SIO_UDP_CONNRESET ????.

??? ????? ??? ???????? ????????, ?? ??????? ???? ???? Platform SDK ??????? ??? ?????????. ????? ??? ?? ???? MSDN ??????:
http://msdn.microsoft.com

?????

???? Microsoft ?? ??? ????? ?? ?????? Microsoft ??????? ?? ????? ??? ???????. ?? ????? ??? ??????? ???? ??? ?? ???? ?????? Service Pack 2 ?????? ?? Windows 2000.

??????? ????

?????? ??? ???? ?? ????????? ??? ????? ????? Windows 2000 ?????????? Windows 2000 ?? ??? ?????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
249149?????? ????????? ???????? Microsoft Windows 2000 ? Windows 2000

???????

???? ???????: 263823 - ????? ??? ??????: 03/???/1428 - ??????: 4.3
????? ???
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
????? ??????: 
kbmt kbhotfixserver kbqfe kbbug kbfix kbwin2000presp2fix KB263823 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????263823

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com