[英]Transfer files at intervals
我正在编写一个客户端/服务器C应用程序,该程序将在编程时间间隔内将文件从客户端传输到服务器。 我能怎么做? 有一些功能可以做到这一点? 我应该使用螺纹吗?
'cron' could fire a shell script,
the shell script would use fpt or tftp
and some file that lists which files to transfer,
for the actual file transfer
您可以使发送方处于循环sleep
,以便发送方仅唤醒,检查要发送的文件,发送1个文件然后返回睡眠状态。
#include <unistd.h> unsigned int sleep(unsigned int seconds);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.