Visual+C++网络通信协议分析

源代码在线查看: ftpclass.h

软件大小: 4.08M
上传用户: m880963
关键词: Visual 网络通信 协议分析
下载地址: 免注册下载 普通下载 VIP

相关代码

				// FTPclient.h: interface for the CFTPclient class.
				//
				//////////////////////////////////////////////////////////////////////
				
				#if !defined(AFX_FTPCLIENT_H__05003AE0_E234_11D2_970B_00A024EBF6AB__INCLUDED_)
				#define AFX_FTPCLIENT_H__05003AE0_E234_11D2_970B_00A024EBF6AB__INCLUDED_
				
				#if _MSC_VER >= 1000
				#pragma once
				#endif // _MSC_VER >= 1000
				
				
				
				class CFTPclient
				{
				public:
					CString m_retmsg;
					CByteArray m_buf;
					CString m_strLine;
				
				
					BOOL MoveFile(CString remotefile, CString localfile,BOOL pasv,BOOL get);
					void LogOffServer();
					BOOL LogOnToServer(CString hostname,int hostport,CString username, CString password, CString acct, CString fwhost,CString fwusername, CString fwpassword,int fwport,int logontype);
					CFTPclient();
					~CFTPclient();
					BOOL FTPcommand(CString command);
					BOOL ReadStr();
					BOOL WriteStr(CString outputstring);
					BOOL List();
					void ProcessList();
					BOOL GetLine(int& ndx);
				
				
				
				
				private:
					CArchive* m_pCtrlRxarch;
					CArchive* m_pCtrlTxarch;
					CSocketFile* m_pCtrlsokfile;
					CSocket* m_Ctrlsok;
					int m_fc;
					BOOL ReadStr2();
					BOOL OpenControlChannel(CString serverhost,int serverport);
					void CloseControlChannel();
				
				protected:
				
				};
				
				
				#endif // !defined(AFX_FTPCLIENT_H__05003AE0_E234_11D2_970B_00A024EBF6AB__INCLUDED_)
							

相关资源