00001
00028 #ifndef CL_
00029 #define CL_
00030 #include <string>
00031
00032 using namespace std;
00033
00035
00040 struct FS_info_struct {
00041 string ip_address;
00042 int port;
00043 };
00044
00046
00058 FS_info_struct* get_FS_info(const char* mes);
00059
00061
00069 int transfer_file (int FS_sd, string file_name, string new_file_name, string CL_address);
00070
00072
00080 int send_end_command(int sock, string file_name, string CL_address);
00081
00083
00094 void mode_1(int sock, string file_name, string new_file_name, int delay);
00095
00097
00108 void mode_2(int sock, string file_name, string new_file_name, int delay);
00109
00110 int main(int argc, char* argv[]);
00111
00112 #endif