Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CASyncSocket error: 10035 - Socket is non-blocking and the specified operation will block.

1,112 views
Skip to first unread message

Mark Firth

unread,
Feb 1, 2002, 10:33:28 AM2/1/02
to
I am trying to write a network communication class derived form CASyncSocket
but I am getting an 'error: 10035 - Socket is non-blocking and the specified
operation will block' when I try to connect.

I am sure that I am doing the same as I have done before and I have never
had this error before.

What's going wrong and how can I stop it?

Thanks in advance
Mark


Adrian O' Neill

unread,
Feb 1, 2002, 12:23:10 PM2/1/02
to
From KB article Q199485:

WSAEWOULDBLOCK (10035)

Resource temporarily unavailable.

This error is returned from operations on non-blocking sockets that cannot
be completed immediately, for example recv when no data is queued to be read
from the socket. It is a non-fatal error, and the operation should be
retried later. It is normal for WSAEWOULDBLOCK to be reported as the result
from calling connect on a non-blocking SOCK_STREAM socket, since some time
must elapse for the connection to be established.

--
Adrian O' Neill - post replies to newsgroup.
Remove * from e-mail address to reply.

"Mark Firth" <n...@email.address> wrote in message
news:vnz68.5906$bP3.29114@NewsReader...

Joseph M. Newcomer

unread,
Feb 1, 2002, 2:33:34 PM2/1/02
to
Yep. That's what they are supposed to do. WSAEWOULDBLOCK is the error returned when an
operation would block (no, it has nothing to do with percussion instruments). You will
then return, and you will get a callback to one of the virtual methods when the operation
is now feasible. Nothing is wrong, and you don't want to stop it.

You will get the OnConnect method call when the connection actually completes.
joe

Joseph M. Newcomer [MVP]
email: newc...@flounder.com
Web: http://www3.pgh.net/~newcomer
MVP Tips: http://www3.pgh.net/~newcomer/mvp_tips.htm

0 new messages