Solved

DNS returns WSANO_DATA. Reason ?

Posted on 1997-07-10
7
1,317 Views
Last Modified: 2013-12-23
Hi.
Does somebody know what can be reason for follow :
gethosbyname() sometime returns WSANO_DATA, after I've used
Auto Connect feature in Win95.
If I start my program when PC is already connected
via DialUp - everything is OK.
TIA.

0
Comment
Question by:pangofil
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 3

Expert Comment

by:hpierson
ID: 1546777
Are you using the Win95 Winsock?

When using any winsock, the first call is always to WSAStartup. This fills a structure with information about the winsock you are using, so that TCP/IP programs can be made aware of any limitations that exist with your winsock. The WSANO_DATA response comes when the winsock app looks to the WSAData structure, and finds that it has not been filled in completely.

It sounds like you program is starting before WSAStartup completes when you use autoconnect. Watch carefully and see if you can tell whether your program is starting before you see the login complete.

You might also check to make sure that when you right click the  internet icon, the information on the connection tab is correct.

Harry
0
 

Author Comment

by:pangofil
ID: 1546778
Yes I'm using Win95 winsock.
And I call WSAStartup() before any network action.
And something else :
  I'm writing 16-bit program so i call 32-bit exe file,
  which performs some WinSock actions ( gethostbyname() )
  for autoconnecting (16-bit Winsock can't perform autoconnect).
  After host resolved the 32-bit app PostMessage about connecting
  result. After what 16-bit app continues ( tries to resolve host   etc ... ). And here ( after WSAStartup has completed )
  some time I get the problem, described above.
0
 
LVL 3

Expert Comment

by:Ikon
ID: 1546779
ask in the programming section
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:pangofil
ID: 1546780
Thanks for responses - I found out that's a problem.
That was becasuse I mixed 16-bit & 32-bit.
Must load 16-bit Winsock after AutoConnection has been completed.
0
 
LVL 3

Expert Comment

by:hpierson
ID: 1546781
Sounds to me like I told you exactly where to look, doesn't it?

And the reason you rejected my answer is...?
0
 

Author Comment

by:pangofil
ID: 1546782
To hpierson :
May be You're right.
I just didn't understand your answer ( it didn't help me to solve  the problem ).
Just answer again - I'll accept it.

PS : Sorry for nasty English - I'm working on it
0
 
LVL 3

Accepted Solution

by:
hpierson earned 100 total points
ID: 1546783
Pangofil,

I hope I didn't come across the wrong way,...it seems from your solution that you realized that the problem was in the general area I described.

By the way, I have no problem with your English.


Best Regards,

Harry

Are you using the Win95 Winsock?

When using any winsock, the first call is always to WSAStartup. This fills a structure with information about the winsock you are using, so that TCP/IP programs can be made aware of any limitations that exist with your winsock. The WSANO_DATA response comes when the winsock app looks to the WSAData structure, and finds that it has not been filled in completely.

It sounds like you program is starting before WSAStartup completes when you use autoconnect. Watch carefully and see if you can tell whether your program is starting before you see the login complete.

You might also check to make sure that when you right click the internet icon, the information on the connection tab is correct.

Harry
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nslookup is a command line driven utility supplied as part of most Windows operating systems that can reveal information related to domain names and the Internet Protocol (IP) addresses associated with them. In simple terms, it is a tool that can …
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question