database.hh 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /********************************************************************** <BR>
  2. This file is part of Crack dot Com's free source code release of
  3. Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
  4. information about compiling & licensing issues visit this URL</a>
  5. <PRE> If that doesn't help, contact Jonathan Clark at
  6. golgotha_source@usa.net (Subject should have "GOLG" in it)
  7. ***********************************************************************/
  8. struct server_info
  9. {
  10. int html_read; // number of pages we've read from this server
  11. int html_waiting; // number of pages waiting to be read fromt his server
  12. int files_read;
  13. int files_failed;
  14. int files_waiting;
  15. server_info *next;
  16. };
  17. struct split_url
  18. {
  19. enum { FILE, HTTP } type;
  20. char server[100];
  21. int port;
  22. char page[100];
  23. char extension[100];
  24. split_url(char *url_name);
  25. };
  26. struct url
  27. {
  28. char *full_name;
  29. server_info *server_for;
  30. w32 checksum();
  31. url(char *name, // text name of url "http://crack.com:80/test.html"
  32. url *server_from=0); // in case url is a relative path we need to know where it came from
  33. ~url(); // frees memory use allocated by constructor
  34. void split(split_url &s); // splits the url into type, server name, page, and extension
  35. };