Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

DNS returns WSANO_DATA. Reason ?

Posted on 1997-07-10
7
Medium Priority
?
1,383 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
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

A common practice in small networks is making file sharing easy which works extremely well when intra-network security is not an issue. In essence, everyone, that is "Everyone", is given access to all of the shared files - often the entire C: drive …
Are you one of those front-line IT Service Desk staff fielding calls, replying to emails, all-the-while working to resolve end-user technological nightmares? I am! That's why I have put together this brief overview of tools and techniques I use in o…
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…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

596 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