亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? ftpsockclient.h

?? 運(yùn)行于Wince平臺(tái)的FTP客戶端
?? H
字號(hào):
// FtpSockClient.h: interface for the CFtpSockClient class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_FTPSOCKCLIENT_H__FD24295F_E047_11D3_8FA6_008048DBAA6B__INCLUDED_)
#define AFX_FTPSOCKCLIENT_H__FD24295F_E047_11D3_8FA6_008048DBAA6B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CFtpSockClient  
{

public:
	//	Construction
	CFtpSockClient();

	virtual ~CFtpSockClient();

	//	Operations
/*******************************************************************
	Function	-	ConnectToServer

	Purpose		-	Used to coonnect to the remote host. Establishes
					a Socket connection to the remote machine, Event
					is Blocking.

	Params		-	1) servername, 
					2) port. 

	Returns		-	Result of the connection request, TRUE if 
					successful.
******************************************************************/
	BOOL	ConnectToServer( CString csServer, UINT unPort );


/*******************************************************************
	Function	-	UserLogin

	Purpose		-	used for User Login

	Params		-	1) Username
					2) password;

	Returns		-	result of login attempt, TRUE if successful
******************************************************************/
	BOOL	UserLogin(CString csUserName, CString csPassword ) ;

/*******************************************************************
	Function	-	DisconnectFromServer

	Purpose		-	used for Disconnecting the Server session. 
					Closes all open sockets, cancels pending requests.

	Params		-	void

	Returns		-	result of disconnect attempt, TRUE if successful
******************************************************************/
	BOOL	DisconnectFromServer();

/*******************************************************************
	Function	-	GetStatusFromServer

	Purpose		-	Function returns the status string from the server

	Params		-	void

	Returns		-	the status string as CString object
******************************************************************/
	CString GetStatusFromServer();


public:
	CString GetHELP();
	//	Attributes
/*====================================================================================================*/	
/*========================================Directory Routines==========================================*/
/*====================================================================================================*/	

/*******************************************************************
	Function	-	GetWorkingDirectory

	Purpose		-	Gets the current working directory on Remote host 

	Params		-	void

	Returns		-	result of chdir attempt, TRUE if successful
******************************************************************/
	CString	GetWorkingDirectory( );


/*******************************************************************
	Function	-	SetWorkingDirectory

	Purpose		-	Set The current working directory on Remote host 

	Params		-	1) The complete path of new directory

	Returns		-	result of chdir attempt, TRUE if successful
******************************************************************/
	BOOL	SetWorkingDirectory( CString csDirectory ) ;

/*******************************************************************
	Function	-	ChangeWorkingDirectory

	Purpose		-	Change the working directory on Remote host 

	Params		-	1) The complete path of new directory

	Returns		-	result of chdir attempt, TRUE if successful
******************************************************************/
	BOOL	ChangeWorkingDirectory( CString csDirectory ) ;

/*******************************************************************
	Function	-	MakeDirectory

	Purpose		-	Create directory on Remote host 

	Params		-	1) The complete path of new directory

	Returns		-	result of chdir attempt, TRUE if successful
******************************************************************/
	BOOL	MakeDirectory( CString csDirectory ) ;


/*******************************************************************
	Function	-	RemoveDirectory

	Purpose		-	Remove directory on Remote host. This function 
					will work if the dir to be deleted is empty.

	Params		-	1) The complete path of dir to remove

	Returns		-	result of delete attempt, TRUE if successful
******************************************************************/
	BOOL	RemoveDirectory( CString csDirectory );

	
/*====================================================================================================*/	
/*=============================================File Routines==========================================*/
/*====================================================================================================*/	
	
/*******************************************************************
	Function	-	GetFile

	Purpose		-	downloads the requested file from the server.

	Params		-	1) The complete path remote file,
					2) The complete path of local File

	Returns		-	result of download attempt, TRUE if successful
******************************************************************/
	BOOL	GetFile( CString csRemoteFile, CString csLocalFile ) ;


/*******************************************************************
	Function	-	PutFile

	Purpose		-	downloads the requested file from the server.

	Params		-	1) The complete path remote file,
					2) The complete path of local File
					Note :	If the Remote file name is not specified 
							then the file is uploaded witht the local 
							name.

	Returns		-	result of upload attempt, TRUE if successful
******************************************************************/
	BOOL	PutFile( CString csLocalFile, CString csRemoteFile ) ;

/*******************************************************************
	Function	-	MoveFile

	Purpose		-	downloads the requested file from the server.

	Params		-	1) The complete path source file,
					2) The complete path of destination File

	Returns		-	result of move attempt, TRUE if successful
******************************************************************/
	BOOL	MoveFile( CString csSourcePath, CString csDestPath ) ;

/*====================================================================================================*/	
/*=============================================Special Routines=======================================*/
/*====================================================================================================*/	

/*******************************************************************
	Function	-	ChangeFileAttrib

	Purpose		-	Change the attributes of the file.This command 
					may not work at all the servers. Also it is 
					limited to user who have the specific rights.

	Params		-	1) The complete path of file whose attribs are 
						to be changed,
					2) New Attributes

  	Returns		-	result of upload attempt, TRUE if successful
******************************************************************/
	BOOL	ChangeFileAttrib( CString csFilePath, CString csAttrib ) ;

/*******************************************************************
	Function	-	ChangeUser

	Purpose		-	Change the user. This is same as logging OFF and
					then logging on with a different username.

	Params		-	1) Username
					2) password
	Returns		-	result of upload attempt, TRUE if successful
******************************************************************/
	BOOL	ChangeUser( CString csUserName, CString csPassword ) ;

/*******************************************************************
	Function	-	SetTransferModeAscii

	Purpose		-	Set The Data Transfer mode to ascii

	Params		-	void
	
	Returns		-	result of attempt, TRUE if successful
******************************************************************/
	BOOL	SetTransferModeAscii( ) ;

/*******************************************************************
	Function	-	SetTransferModeImage

	Purpose		-	Set The Data Transfer mode image

	Params		-	void
	
	Returns		-	result of attempt, TRUE if successful
******************************************************************/
	BOOL	SetTransferModeImage( ) ;


/*******************************************************************
	Function	-	GetFileList

	Purpose		-	Set The Data Transfer mode image

	Params		-	The Directory whose files are to be listed
	
	Returns		-	The number of files in that dir
******************************************************************/
	UINT	GetFileList( CString csDirectory, CString &csFileList ) ;

private:
	//	Operations
/*******************************************************************
	Function	-	CreateChannel

	Purpose		-	Creates the control socket object, initialises
					socket and creates the socket handle.

	Params		-	void

	Returns		-	result of create attempt, TRUE if successful
******************************************************************/
	BOOL	CreateChannel();

	
/*******************************************************************
	Function	-	CloseChannel

	Purpose		-	Does the cleanup for socket object

	Params		-	void

	Returns		-	void
******************************************************************/
	void	CloseChannel();


/*******************************************************************
	Function	-	SendCommand

	Purpose		-	Send an FTP Command to the server

	Params		-	1) Command string

	Returns		-	TRUE if the command was sent successfully.
******************************************************************/
	BOOL	SendCommand( CString csCommand ) ;

/*******************************************************************
	Function	-	GetResponse()

	Purpose		-	Get the response string from the server

	Params		-	void

	Returns		-	The response string from the server. 
******************************************************************/
	CString		GetResponse( ) ;


/*******************************************************************
	Function	-	SetErrorCode

	Purpose		-	Sets the error code occuring from a function.

	Params		-	1) Error code from GetLastError()

	Returns		-	void
******************************************************************/
	void	SetErrorCode( int nErrorCode ) ;

/*******************************************************************
	Function	-	SetErrorCode

	Purpose		-	Sets the error code occuring from a function.

	Params		-	void

	Returns		-	the error code set buy SetErrorCode()
******************************************************************/
	int		GetErrorCode( ) ;

/*******************************************************************
	Function	-	TraceErrorCode

	Purpose		-	traces the error  code for the connect routine
					in the output window

	Params		-	1) Error code from GetLastError()

	Returns		-	void
******************************************************************/
	void	TraceErrorCode( int nErrorCode) ;

/*******************************************************************
	Function	-	AssertFailure

	Purpose		-	1) Asserts that the socket hasn't been initialized 
						before use
					2) Asserts that there is no active session 

	Params		-	void

	Returns		-	True if Assertion is Valid
******************************************************************/
	BOOL AssertFailure();

private:

	CString m_csStatusString;

	BOOL OpenDataChannel();

//	members

	CString m_FileList;


	CString m_csTransferMode;

//	This Socket is our control Socket used for the main Communication 
//	with the server. 
//	This is a blocking socket. Created using CreateChannel() and 
//	Closed by CloseChannel()
	CSocket		*m_pCtrlSock;

//	This string is used for storing the current host, the socket is 
//	connected to.
	CString		m_csHost;

//	Boolean variable which identifies whether a session is currently 
//	established.
	BOOL		m_bSession;

//	integer variable which identifies stores the last error code
	int			m_nLastError;

// String has Help 
	CString		m_csHelpString;

	CSocket		m_SockSrvr;

};

#endif // !defined(AFX_FTPSOCKCLIENT_H__FD24295F_E047_11D3_8FA6_008048DBAA6B__INCLUDED_)

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人性生交大片免费| 精品国产亚洲在线| 久久综合狠狠综合久久综合88 | 蜜桃一区二区三区在线观看| 国产成人超碰人人澡人人澡| 精品国产百合女同互慰| 亚洲影院久久精品| 在线亚洲欧美专区二区| 中文字幕一区二区三区在线不卡| 国产综合久久久久久鬼色| 欧美日韩视频在线一区二区| 综合久久久久久久| 91美女视频网站| 亚洲天堂免费在线观看视频| 91一区在线观看| 亚洲电影在线播放| 欧美日韩高清一区二区不卡 | 色噜噜狠狠色综合中国| 亚洲三级在线看| 欧美日韩国产欧美日美国产精品| 亚洲资源中文字幕| 91精品国产综合久久久久久漫画 | 高清不卡一区二区在线| 国产精品二三区| 在线免费视频一区二区| 人人超碰91尤物精品国产| 中文字幕乱码久久午夜不卡| 欧美日韩一区视频| 日韩欧美亚洲国产另类| 日本高清无吗v一区| 狠狠色丁香久久婷婷综合丁香| 亚洲乱码国产乱码精品精的特点| 久久综合狠狠综合| 日韩视频一区在线观看| 日本韩国精品一区二区在线观看| 国产电影一区在线| 另类小说视频一区二区| 日本视频中文字幕一区二区三区| 亚洲一区二区视频| 亚洲美腿欧美偷拍| 国产精品成人免费精品自在线观看| 亚洲精品在线网站| 欧美一级片在线| 欧美一区二区三区视频免费播放| 欧美日韩一级黄| 在线播放中文一区| 337p亚洲精品色噜噜噜| 正在播放亚洲一区| 69堂国产成人免费视频| 91精品国产综合久久久久久久 | 粉嫩久久99精品久久久久久夜| 国产一区二区三区免费看| 狠狠色丁香久久婷婷综合丁香| 久久se精品一区二区| 国产最新精品免费| 日韩精品一区二区三区swag | 欧美精品三级在线观看| 欧美久久久久中文字幕| 日韩亚洲欧美在线观看| 久久女同性恋中文字幕| 国产精品久线在线观看| 丝袜亚洲另类欧美| 国产成人午夜精品影院观看视频 | 偷拍一区二区三区四区| 激情另类小说区图片区视频区| 老司机精品视频在线| 国产91精品免费| 在线观看视频一区二区欧美日韩| 欧美tk—视频vk| 国产精品不卡视频| 日日摸夜夜添夜夜添精品视频| 韩国av一区二区| 欧美亚洲高清一区二区三区不卡| 欧美mv日韩mv| 亚洲18女电影在线观看| 国产成人免费视| 欧美日本一区二区三区四区| 中文幕一区二区三区久久蜜桃| 五月婷婷综合激情| 99久久精品免费| 久久精品在线免费观看| 青青草91视频| 欧美日韩激情一区二区| 亚洲图片激情小说| 国产成人精品亚洲午夜麻豆| 欧美一区二区三区视频免费| 一区二区三区四区亚洲| 91日韩在线专区| 日韩一区日韩二区| 99久久久久久| 欧美经典一区二区| 国产99久久久国产精品潘金 | 国产精品美女www爽爽爽| 国产精品性做久久久久久| 久久男人中文字幕资源站| 精品一区二区在线免费观看| 91精品午夜视频| 韩国精品主播一区二区在线观看| 91精品国产全国免费观看| 香港成人在线视频| 日韩欧美国产一区二区在线播放| 奇米四色…亚洲| 亚洲精品在线免费观看视频| 国产精品一区专区| 亚洲视频电影在线| 欧美女孩性生活视频| 国产一区二区精品久久99| 国产午夜精品一区二区三区嫩草| 风间由美一区二区三区在线观看 | 亚洲人成人一区二区在线观看 | 色综合久久综合中文综合网| 亚洲柠檬福利资源导航| 欧美岛国在线观看| 国产不卡视频一区| 亚洲成人黄色小说| 国产精品美女一区二区| 99久久精品免费精品国产| 国产精品青草综合久久久久99| 视频一区二区三区中文字幕| 国产无一区二区| 久久久久综合网| www国产亚洲精品久久麻豆| 久久久久久久久99精品| 精品理论电影在线观看 | 日韩av一区二| 成人免费在线视频观看| 日韩欧美国产精品一区| 成人动漫中文字幕| 麻豆精品国产传媒mv男同| 亚洲精品欧美二区三区中文字幕| 日韩欧美123| 91精品国产综合久久久蜜臀图片 | 青草国产精品久久久久久| 一区二区视频在线看| 国产精品美女久久久久久2018| 日韩精品一区二区三区视频播放 | 91麻豆国产自产在线观看| 久久99精品久久久久| 日韩精品欧美精品| 日韩精品高清不卡| 精一区二区三区| 国产一区二区伦理| 懂色av一区二区三区蜜臀| 91精品办公室少妇高潮对白| 色综合久久久久网| 欧美电影在线免费观看| 日韩欧美成人午夜| 国产精品免费观看视频| 中文字幕一区免费在线观看| 亚洲欧美视频在线观看视频| 亚洲综合区在线| 麻豆久久一区二区| 成人h精品动漫一区二区三区| 色综合一区二区| 日韩网站在线看片你懂的| 久久一区二区视频| 亚洲精品乱码久久久久久黑人| 亚洲欧美国产高清| 日本三级韩国三级欧美三级| 国产精品夜夜嗨| 久久免费看少妇高潮| 色综合av在线| 日本女优在线视频一区二区| 国产高清精品在线| 亚洲综合偷拍欧美一区色| 久久综合九色综合欧美就去吻| 色综合久久综合中文综合网| 久久不见久久见免费视频7| 亚洲最色的网站| 欧美极品另类videosde| 日韩你懂的在线播放| 欧美视频在线播放| 色综合天天综合网国产成人综合天| 激情图区综合网| 免费看精品久久片| 亚洲午夜精品在线| 精品盗摄一区二区三区| 91福利精品第一导航| 国产精品一区二区男女羞羞无遮挡 | 欧美丰满一区二区免费视频| 成人深夜福利app| 免费黄网站欧美| 亚洲永久免费视频| 亚洲国产精华液网站w| 日韩欧美精品在线视频| 欧美午夜视频网站| 色综合天天综合网国产成人综合天| 久久99久久精品| 奇米影视7777精品一区二区| 亚洲无人区一区| 国产欧美久久久精品影院| 欧美丰满少妇xxxxx高潮对白| 91成人看片片| 在线观看91视频| 在线观看日韩一区| 91福利国产精品| 欧美美女bb生活片| 欧美日韩不卡在线| 7777精品久久久大香线蕉| 欧美三级一区二区|