2016-12-16 14:59:07 +08:00
|
|
|
#include "client.h"
|
2017-05-23 10:19:21 +08:00
|
|
|
#include "client.cpp"
|
2017-03-27 15:57:44 +08:00
|
|
|
int main(int argc,char *argv[])
|
|
|
|
{ char *command = argv[1];
|
|
|
|
//printf("%s\n",command);
|
|
|
|
if(strcmp(command,"read")==0)
|
|
|
|
{
|
|
|
|
//transread("202.122.37.90:28003","/root/leaf/pytoc/upload/night.mkv","/root/leaf/","0","0","0","1000000000000");
|
2017-07-10 17:46:14 +08:00
|
|
|
transread("202.122.37.90:28001","/root/leaf/pytoc/upload/test.log","/root/leaf/test.log","0","0","0","2097152");
|
2017-07-10 17:50:12 +08:00
|
|
|
//transread("202.122.37.90:28001","/home/wangcong/leaf/upload/night.mkv","/root/leaf/night.mkv","0","0",0,800*1024*1024);
|
2017-03-27 15:57:44 +08:00
|
|
|
}
|
|
|
|
else if(strcmp(command,"upload")==0)
|
|
|
|
{
|
|
|
|
transupload("202.122.37.90:28001","/root/leaf/night.mkv","/home/wangcong/leaf/upload/night.mkv");
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{printf("Error arguments!\n");}
|
|
|
|
|
2016-12-16 14:59:07 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|