home *** CD-ROM | disk | FTP | other *** search
/ PC Open 48 / pcopen48.iso / Internet / HtTrack / DATA1.CAB / Sources / src / htsftp.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-21  |  2.2 KB  |  72 lines

  1. /* ------------------------------------------------------------ */
  2. /*
  3. HTTrack Website Copier, Offline Browser for Windows and Unix
  4. Copyright (C) Xavier Roche, Yann Philippot
  5.  
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU General Public License
  8. as published by the Free Software Foundation; either version 2
  9. of the License, or any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  19.  
  20.  
  21. Important notes:
  22.  
  23. - We hereby ask people using this source NOT to use it in purpose of grabbing
  24. emails addresses, or collecting any other private information on persons.
  25. This would disgrace our work, and spoil the many hours we spent on it.
  26.  
  27.  
  28. This project has been developed by Xavier Roche and Yann Philippot,
  29. from the company Serianet at Caen, France (http://www.serianet.com)
  30.  
  31. Please visit our Website: http://www.httrack.com
  32. */
  33.  
  34.  
  35. /* ------------------------------------------------------------ */
  36. /* File: basic FTP protocol manager .h                          */
  37. /* Author: Xavier Roche                                         */
  38. /* ------------------------------------------------------------ */
  39.  
  40.  
  41. #ifndef HTSFTP_DEFH
  42. #define HTSFTP_DEFH 
  43.  
  44. #include "htsbase.h"
  45. #include "htsbasenet.h"
  46. #include "htsthread.h"
  47.  
  48. // lien_back
  49. #include "httrack.h"
  50.  
  51. #if USE_BEGINTHREAD
  52. void launch_ftp(lien_back* back);
  53. PTHREAD_TYPE back_launch_ftp( void* pP );
  54. #else
  55. void launch_ftp(lien_back* back,char* path,char* exec);
  56. int back_launch_ftp(lien_back* back);
  57. #endif
  58.  
  59. int run_launch_ftp(lien_back* back);
  60. int send_line(T_SOC soc,char* data);
  61. int get_line(T_SOC soc,char* line,int timeout);
  62. T_SOC get_datasocket(char* to_send);
  63. int stop_ftp(lien_back* back);
  64. char* linejmp(char* line);
  65. int check_socket(T_SOC soc);
  66. int check_socket_connect(T_SOC soc);
  67. int wait_socket_receive(T_SOC soc,int timeout);
  68.  
  69.  
  70. #endif
  71.  
  72.