Thanks for any help,
Mechi
fds has only one socket in its list - fd.
rc = select(0, &fds, NULL, NULL, &timeout); // rc =1
Delay(500);
...
dummylen = 0;
memset(buffer, 0, 2048);
rc = recvfrom(fd, (char *)buffer, 2048, 0, (struct sockaddr
*)&peer_addr, &dummylen);
if(rc < 0)
{
int err;
/*
* Check for error type - we may get a "reset by peer" error
which
* indicates a packet we sent was dropped - which is OK
*/
err = WSAGetLastError();
}
I don't know exactly what is the problem, but any way you should initialize
the socket size.
int dummylen = sizeof( SOCKADDR_IN );
/////////////////////////////////////
"Mechi Fendel" wrote:
> Hi!
> Here's some code that used to work well. Now the recvfrom command returns
> an error that WSAGetLastError reports is 1421. This is not in the WSA range
> of errors - what does this mean?
>
>
> Thanks for any help,
> Mechi
>
> fds has only one socket in its list - fd.
>
> rc = select(0, &fds, NULL, NULL, &timeout); // rc =1
> Delay(500);
> ....
"Mechi Fendel" <mec...@ozvision.com> wrote in message
news:e5TEX2c8...@TK2MSFTNGP05.phx.gbl...
"Mechi Fendel" <mec...@ozvision.com> wrote in message
news:OkxRkBe8...@TK2MSFTNGP02.phx.gbl...
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnic...@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Mechi Fendel" <mec...@ozvision.com> wrote in message
news:OkxRkBe8...@TK2MSFTNGP02.phx.gbl...