hi I have tryed searching google and i can't get what i wanted. I am making a script in c++ that includes <netdb.h> and the compiler cnat find it so i can't do anymore untill i can download it. does anyone know where to get those and how to put them into visual c++ 6.0?
Announcement
Collapse
No announcement yet.
<netdb.h> missing
Collapse
X
-
Re: <netdb.h> missing
Originally posted by jetforce4004
hi I have tryed searching google and i can't get what i wanted. I am making a script in c++ that includes <netdb.h> and the compiler cnat find it so i can't do anymore untill i can download it. does anyone know where to get those and how to put them into visual c++ 6.0?
Section 7: Articles: Winsock's Compatibility With BSD Sockets
http://tangentsoft.net/wskfaq/articl...atibility.html
#include Differences (Added 2000.06.12)
Under BSD sockets, there are quite a few different header files you need to include, depending on what sockets calls you use. A typical BSD sockets program has a block of #includes near the top like this:
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
For Winsock, you don't need any of these. Instead, you just need to include winsock.h. (Or, if you need Winsock 2-specific functionality, winsock2.h.)
Comment