Announcement

Collapse
No announcement yet.

<netdb.h> missing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • <netdb.h> missing

    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?

  • #2
    Re: &lt;netdb.h&gt; 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?
    Winsock Programmer's FAQ
    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


    • #3
      i'm just gona scrap the project because more than half of the code is messed up and writen wrong. Anyone know code for forging a ping's source? in c++ prefibly.

      Comment

      Working...
      X