Headers files for Windows?

This is a discussion on Headers files for Windows? within the C Programming forums, part of the General Programming Boards category; Hi all, Where can i find network headers files for Windows XP, example: sys/socket.h, arpa/inet.h, netinet/in.h, netinet/tcp.h, netinet/udp.h and others? ...

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    12

    Question Headers files for Windows?

    Hi all,

    Where can i find network headers files for Windows XP, example:
    sys/socket.h, arpa/inet.h, netinet/in.h, netinet/tcp.h, netinet/udp.h and others?

    Thanks by help.

    Hacinn

  2. #2
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220

  3. #3
    Registered User
    Join Date
    Dec 2004
    Location
    The Netherlands
    Posts
    91
    winsock2.h

  4. #4
    Registered User
    Join Date
    Jul 2005
    Posts
    12

    Question

    Thanks by help, but I didn't find in this files, the structs ether_header, tcphdr, udphdr, ip and others.

    Where am i mistake?

    Thanks again.

    Hacinn

  5. #5
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970
    Quote Originally Posted by hacinn
    Thanks by help, but I didn't find in this files, the structs ether_header, tcphdr, udphdr, ip and others.
    These look like *nix types. Your Windows compiler probably doesn't support them.

  6. #6
    Registered User
    Join Date
    Jul 2005
    Posts
    12
    Thanks by help, and how can I get information like protocol type (ARP, IP), IP destination and source address and port, TCP and UDP headers informations.

    My goal is make a sniffer and I am using winpcap, but I didn't find this informations in winpcap documentations.

    Thanks again.

    Hacinn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Error opening files in a different dir
    By Ozzie in forum C++ Programming
    Replies: 3
    Last Post: 10-09-2008, 06:55 AM
  2. Program Deployment and DLL/OCX Files?
    By dfghjk in forum C++ Programming
    Replies: 5
    Last Post: 06-16-2008, 02:47 AM
  3. accessing all files in a folder.
    By pastitprogram in forum C++ Programming
    Replies: 15
    Last Post: 04-30-2008, 10:56 AM
  4. Help with loading files into rich text box
    By blueparukia in forum C# Programming
    Replies: 3
    Last Post: 10-19-2007, 12:59 AM
  5. reinserting htm files into chm help files
    By verb in forum Windows Programming
    Replies: 0
    Last Post: 02-15-2002, 08:35 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21