home *** CD-ROM | disk | FTP | other *** search
/ Steganos Hacker Tools / SHT151.iso / programme / scanner / nmapNTsp1 / Win_2000.exe / nmapNT-src / services.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-07-06  |  545 b   |  27 lines

  1. #ifndef SERVICES_H
  2. #define SERVICES_H
  3. #ifdef WIN32
  4. #include <winclude.h>
  5. #else
  6. #include <netdb.h>
  7. #endif
  8. #include "nmap.h"
  9. #include "global_structures.h"
  10. #include "charpool.h"
  11. #include "error.h"
  12. #include "utils.h"
  13.  
  14. #define SERVICE_TABLE_SIZE 1024
  15.  
  16. struct service_list {
  17.   struct servent *servent;
  18.   struct service_list *next;
  19. };
  20.  
  21. struct servent *nmap_getservbyport(int port, const char *proto);
  22. unsigned short *getfastports(int tcpscan, int udpscan);
  23. unsigned short *getdefaultports(int tcpscan, int udpscan);
  24.  
  25.  
  26. #endif
  27.