Click to See Complete Forum and Search --> : Sockets : How to Handle WSAEWOULDBLOCK ?


Ammu_Putta
January 11th, 2005, 01:01 AM
HI ALL,

i have a class derived from CSocket.

on calling the Connect function, it returns 1 (SUCCESS).

Now if i derive a class from CAsyncSocket and call the Connect function , it returns zero with GetLastError = WSAEWOULDBLOCK.

but on the server side OnAccept is invoked as expected.

now when i send a message from client to server, OnReceive is not invoked.

Firstly how to deal with WSAEWOULDBLOCK..... ?

if any of u have some lines of code regarding this ...please mail me.

Thanks

Andreas Masur
January 11th, 2005, 03:08 AM
[ Moved thread ]

Mathew Joy
January 11th, 2005, 01:01 PM
Winsock keeps returning the error WSAEWOULDBLOCK. What's wrong with my program?
(http://tangentsoft.net/wskfaq/newbie.html#wouldblock)

Andreas Masur
January 11th, 2005, 04:04 PM
Ammu_Putta, to answer your question sent by mail...I have moved your thread to a more appropriate forum (read: increased the chances for getting qualified results)...