I have an application using winsock to UNIX but I find that when it execute "connect(Socket, sockaddr, int)", it sometimes hanged. What does it mean?
And Can I use timeout to stop it? What is the method?
Thanks in advance
Printable View
I have an application using winsock to UNIX but I find that when it execute "connect(Socket, sockaddr, int)", it sometimes hanged. What does it mean?
And Can I use timeout to stop it? What is the method?
Thanks in advance
Try using Winsock 2, Winsock 2 support timeout, but it's difficult to use.
create an object which is derived from CAsycSocket and set for events