⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 client.h

📁 数据库服务
💻 H
字号:
#if !defined(AFX_LIENT_H__7B5384D4_5F80_11D3_9E07_00A0C9395AB0__INCLUDED_)
#define AFX_LIENT_H__7B5384D4_5F80_11D3_9E07_00A0C9395AB0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// lient.h : header file
//


/*客户端状态说明
9001 空闲状态
9002 开始传输文件

*/
#define C_FREE		9001
#define C_SENDFILE	9002
#define C_GETFILE	9003

/////////////////////////////////////////////////////////////////////////////
// Client command target

class Cclient : public CSocket
{
// Attributes
public:
	Cclient *m_pNext;
	int Status;
	CString m_NWFileName;
	int m_FileLen;
	CFile m_NWFile;
	CFileException ex;

	CString m_strUserCode;
	CString m_strUserName;


// Operations
public:
	Cclient();
	virtual ~Cclient();
	virtual void OnReceive( int nErrorCode );	

	void DataOperation(CString strData);
	void WriteData(CString strData);
	bool SendData(CString strData);

	void CheckUser(CString strData);//#用户编号#
	void NewUserInfo(CString strData);//#用户名称#用户描述#
	void ModifyUserInfo(CString strData);//#用户编号#用户名称#用户描述#
	void StoreFileList(CString strData);//#UserIndex#
	void BackSendFile(CString strData);//#FileIndex#
	void DeleteFile(CString strData);//#FileIndex#
	void SaveRequest(CString strData);//#UserCode#UserName#Number#
	void GetRequest(CString strData);//#UserCode#
	void SendFile(CString FileName);
	void GetFile(CString strData);//#FileName#
	void EndGetFile();
// Overrides
public:
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(Client)
	//}}AFX_VIRTUAL

	// Generated message map functions
	//{{AFX_MSG(Client)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

// Implementation
protected:
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_LIENT_H__7B5384D4_5F80_11D3_9E07_00A0C9395AB0__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -