home     download     screen shots     bugs     mailing list     example output     generated MFC docs     help     tools and utilities


 Overview   Project   Class   Tree   Index 
MFC Class Library
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

MFC
Class CFtpConnection

CObject
   |
   +--CInternetConnection
         |
         +--CFtpConnection

   in AFXINET.H

class CFtpConnection
extends CInternetConnection


Field Summary
protected CString m_strServerName
          
   
Fields inherited from class CInternetConnection
m_hConnection, m_dwContext, m_pSession, m_strServerName, m_nPort
   
Fields inherited from class CObject
classCObject
 
Constructor Summary
CFtpConnection( CInternetSession* pSession, LPCTSTR pstrServer, LPCTSTR pstrUserName = NULL, LPCTSTR pstrPassword = NULL, DWORD dwContext = 0, INTERNET_PORT nPort = INTERNET_INVALID_PORT_NUMBER, BOOL bPassive = FALSE )
          
CFtpConnection( CInternetSession* pSession, HINTERNET hConnected, LPCTSTR pstrServer, DWORD dwContext )
          
~CFtpConnection()
          
 
Method Summary
 virtual void Close()
          
 BOOL CreateDirectory( LPCTSTR pstrDirName )
          
 BOOL GetCurrentDirectory( CString& strDirName ) const
          
 BOOL GetCurrentDirectory( LPTSTR pstrDirName, LPDWORD lpdwLen ) const
          
 BOOL GetCurrentDirectoryAsURL( CString& strDirName ) const
          
 BOOL GetCurrentDirectoryAsURL( LPTSTR pstrName, LPDWORD lpdwLen ) const
          
 BOOL GetFile( LPCTSTR pstrRemoteFile, LPCTSTR pstrLocalFile, BOOL bFailIfExists = TRUE, DWORD dwAttributes = FILE_ATTRIBUTE_NORMAL, DWORD dwFlags = FTP_TRANSFER_TYPE_BINARY, DWORD dwContext = 1 )
          
 CInternetFile* OpenFile( LPCTSTR pstrFileName, DWORD dwAccess = GENERIC_READ, DWORD dwFlags = FTP_TRANSFER_TYPE_BINARY, DWORD dwContext = 1 )
          
 BOOL PutFile( LPCTSTR pstrLocalFile, LPCTSTR pstrRemoteFile, DWORD dwFlags = FTP_TRANSFER_TYPE_BINARY, DWORD dwContext = 1 )
          
 BOOL Remove( LPCTSTR pstrFileName )
          
 BOOL RemoveDirectory( LPCTSTR pstrDirName )
          
 BOOL Rename( LPCTSTR pstrExisting, LPCTSTR pstrNew )
          
 BOOL SetCurrentDirectory( LPCTSTR pstrDirName )
          
   
Methods inherited from class CInternetConnection
HINTERNET, GetContext, GetSession, GetServerName, QueryOption, QueryOption, QueryOption, SetOption, SetOption, Close
   
Methods inherited from class CObject
GetRuntimeClass, new, new, delete, IsSerializable, IsKindOf, Serialize
 

Field Detail

m_strServerName

protected CString m_strServerName;


Constructor Detail

CFtpConnection

public CFtpConnection( CInternetSession* pSession, LPCTSTR pstrServer, LPCTSTR pstrUserName = NULL, LPCTSTR pstrPassword = NULL, DWORD dwContext = 0, INTERNET_PORT nPort = INTERNET_INVALID_PORT_NUMBER, BOOL bPassive = FALSE );

CFtpConnection

public CFtpConnection( CInternetSession* pSession, HINTERNET hConnected, LPCTSTR pstrServer, DWORD dwContext );

~CFtpConnection

public ~CFtpConnection();


Method Detail

Close

public virtual void Close();

CreateDirectory

public BOOL CreateDirectory( LPCTSTR pstrDirName );

GetCurrentDirectory

public BOOL GetCurrentDirectory( CString& strDirName ) const;

GetCurrentDirectory

public BOOL GetCurrentDirectory( LPTSTR pstrDirName, LPDWORD lpdwLen ) const;

GetCurrentDirectoryAsURL

public BOOL GetCurrentDirectoryAsURL( CString& strDirName ) const;

GetCurrentDirectoryAsURL

public BOOL GetCurrentDirectoryAsURL( LPTSTR pstrName, LPDWORD lpdwLen ) const;

GetFile

public BOOL GetFile( LPCTSTR pstrRemoteFile, LPCTSTR pstrLocalFile, BOOL bFailIfExists = TRUE, DWORD dwAttributes = FILE_ATTRIBUTE_NORMAL, DWORD dwFlags = FTP_TRANSFER_TYPE_BINARY, DWORD dwContext = 1 );

OpenFile

public CInternetFile* OpenFile( LPCTSTR pstrFileName, DWORD dwAccess = GENERIC_READ, DWORD dwFlags = FTP_TRANSFER_TYPE_BINARY, DWORD dwContext = 1 );

PutFile

public BOOL PutFile( LPCTSTR pstrLocalFile, LPCTSTR pstrRemoteFile, DWORD dwFlags = FTP_TRANSFER_TYPE_BINARY, DWORD dwContext = 1 );

Remove

public BOOL Remove( LPCTSTR pstrFileName );

RemoveDirectory

public BOOL RemoveDirectory( LPCTSTR pstrDirName );

Rename

public BOOL Rename( LPCTSTR pstrExisting, LPCTSTR pstrNew );

SetCurrentDirectory

public BOOL SetCurrentDirectory( LPCTSTR pstrDirName );

 Overview   Project   Class   Tree   Index 
MFC Class Library
CppDoc v2.3.1
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD