cdownload.h
来自「传圣(测试版)说明 本软件适用于装有IP/TCP协议的电脑。 主要功能:」· C头文件 代码 · 共 71 行
H
71 行
// cdownload.h: interface for the cdownload class.
//
//////////////////////////////////////////////////////////////////////
//#include "MainFrm.h"
//*************************************************************
/********************************************************/
#if !defined(AFX_CDOWNLOAD_H__9D039885_5200_4E69_A6DF_13A277F53A04__INCLUDED_)
#define AFX_CDOWNLOAD_H__9D039885_5200_4E69_A6DF_13A277F53A04__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
int readn(SOCKET fd,char *bp,int len);
//extern int totle;
//extern long filelen;
extern char name1[10][255];
//extern int size;
//extern int black;
//extern struct downinfo;
int sendn(SOCKET fd,char *bp,int len);
struct fileinfo
{
//文件信息
int fileno;
int type;
long len;
int seek;
char name[100];
};
struct downinfo
{
//下载信息
int totle;
int black;
int filelen;
int threadno;
CString name;
};
//extern CString name;
extern CString ip;
DWORD WINAPI timethread(LPVOID lpparam);
class cdownload
{
public:
// int size;
void createthread();
DWORD finish1();
int sendlist();
downinfo doinfo;
int startask(int n);
long m_index;
BOOL good[BLACK];
int filerange[100];
CString fname;
CString fnametwo;
// CString fnametwo1;
// CString name;
// int downno;
UINT threadfunc(long index);
int sendrequest(int n);
cdownload(int thno1);
virtual ~cdownload();
};
#endif // !defined(AFX_CDOWNLOAD_H__9D039885_5200_4E69_A6DF_13A277F53A04__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?