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
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