代码拉取完成,页面将自动刷新
//
// C++ Interface: SendFileData
//
// Description:
// 发送文件数据
//
// Author: Jally <jallyx@163.com>, (C) 2009
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef SENDFILEDATA_H
#define SENDFILEDATA_H
#include "mess.h"
class SendFileData: public TransAbstract
{
public:
SendFileData(int sk, FileInfo *fl);
~SendFileData();
void SendFileDataEntry();
virtual GData **GetTransFilePara();
virtual void TerminateTrans();
private:
void CreateUIPara();
void SendRegularFile();
void SendDirFiles();
int64_t SendData(int fd, int64_t filesize);
void UpdateUIParaToOver();
int sock; //数据套接口
FileInfo *file; //文件信息
GData *para; //UI参考数据
bool terminate; //终止标志(也作处理结果标识)
int64_t sumsize; //文件(目录)总大小
char buf[MAX_SOCKLEN]; //数据缓冲区
struct timeval tasktime, filetime; //任务开始时间&文件开始时间
};
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。