Winsock state problem

sups123

Member
Joined
Mar 10, 2006
Messages
14
Programming Experience
1-3
Hi

I am using winsock in my vb.net application. There is some issue on control state of winsock.
Previously when I connected to winsock in the starting it used to give the state as 6 i.e. connecting then after connecting it gave state as 7 i.e. connected.
Now when I run my application the winsock steate which I get first is 4 i.e Resolving Host. Can some one tell me why this problem is coming and what is state 4?

thanks
sups123
 
"Resolving host" means is it trying to find a server for the address you want to connect, but still haven't found it. This could be because the server is down or because there is a local problem with your internet connection (for instance your ISPs DNS server is down, or other connection malfunction).

You know .Net framework has got the System.Net.Sockets namespace with functionalities instead of importing the COM control Winsock.
 
Back
Top