#include <fsFtpFile.h>

Public Member Functions | |
| fsInternetResult | Write (LPBYTE pBuffer, DWORD dwToWrite, DWORD *pdwWritten) |
| fsInternetResult | OpenEx (LPCSTR pszFilePath, UINT64 uStartPos, UINT64 uUploadPartSize=_UI64_MAX, UINT64 uUploadTotalSize=_UI64_MAX) |
| fsFtpTransferType | GetTransferType () |
| void | SetDontUseLIST (BOOL b) |
| virtual fsInternetResult | QuerySize (LPCSTR pszFilePath) |
| virtual void | CloseHandle () |
| fsInternetResult | SetTransferType (fsFtpTransferType enType) |
| fsInternetResult | Read (LPBYTE pBuffer, DWORD dwToRead, DWORD *pdwRead) |
| fsInternetResult | Open (LPCSTR pszFilePath, UINT64 uStartPos) |
| fsFtpFile () | |
| virtual | ~fsFtpFile () |
| fsInternetResult | Write (LPBYTE pBuffer, DWORD dwToWrite, DWORD *pdwWritten) |
| fsInternetResult | OpenEx (LPCSTR pszFilePath, UINT64 uStartPos, UINT64 uUploadPartSize=_UI64_MAX, UINT64 uUploadTotalSize=_UI64_MAX) |
| fsFtpTransferType | GetTransferType () |
| void | SetDontUseLIST (BOOL b) |
| virtual fsInternetResult | QuerySize (LPCSTR pszFilePath) |
| virtual void | CloseHandle () |
| fsInternetResult | SetTransferType (fsFtpTransferType enType) |
| fsInternetResult | Read (LPBYTE pBuffer, DWORD dwToRead, DWORD *pdwRead) |
| fsInternetResult | Open (LPCSTR pszFilePath, UINT64 uStartPos) |
| fsFtpFile () | |
| virtual | ~fsFtpFile () |
Protected Member Functions | |
| BOOL | Send_LIST (LPSTR pszCmd, LPCSTR pszFile) |
| BOOL | IsDigit (char c) |
| fsInternetResult | PASV_ConnectSocket () |
| BOOL | ParseSIZE () |
| fsInternetResult | FtpError () |
| SHORT | OpenSocket () |
| void | ReceiveExtError () |
| BOOL | Send_LIST (LPSTR pszCmd, LPCSTR pszFile) |
| BOOL | IsDigit (char c) |
| fsInternetResult | PASV_ConnectSocket () |
| BOOL | ParseSIZE () |
| fsInternetResult | FtpError () |
| SHORT | OpenSocket () |
| void | ReceiveExtError () |
Static Protected Member Functions | |
| static BOOL | FtpCommand (HINTERNET hConnect, BOOL fExpectResponse, DWORD dwFlags, LPCSTR pszCommand, DWORD_PTR dwContext, HINTERNET *phFtpCommand) |
| static BOOL | FtpCommand (HINTERNET hConnect, BOOL fExpectResponse, DWORD dwFlags, LPCSTR pszCommand, DWORD_PTR dwContext, HINTERNET *phFtpCommand) |
Protected Attributes | |
| BOOL | m_bDontUseLIST |
| fsString | m_strPORT |
| SOCKET | m_sFile |
| SOCKET | m_sRcv |
| DWORD | m_dwTransferType |
Definition at line 23 of file fsFtpFile.h.
| fsFtpFile::fsFtpFile | ( | ) |
Definition at line 13 of file fsFtpFile.cpp.
References FALSE, FTP_TRANSFER_TYPE_BINARY, m_bDontUseLIST, m_dwTransferType, m_sFile, and m_sRcv.
| fsFtpFile::~fsFtpFile | ( | ) | [virtual] |
| fsFtpFile::fsFtpFile | ( | ) |
| virtual fsFtpFile::~fsFtpFile | ( | ) | [virtual] |
| fsInternetResult fsFtpFile::Write | ( | LPBYTE | pBuffer, | |
| DWORD | dwToWrite, | |||
| DWORD * | pdwWritten | |||
| ) | [virtual] |
Reimplemented from fsInternetFile.
Definition at line 576 of file fsFtpFile.cpp.
References fsWSAErrorToIR(), IR_ERROR, IR_NOTINITIALIZED, IR_SUCCESS, m_sFile, and asio::detail::socket_ops::send().
| fsInternetResult fsFtpFile::OpenEx | ( | LPCSTR | pszFilePath, | |
| UINT64 | uStartPos, | |||
| UINT64 | uUploadPartSize = _UI64_MAX, |
|||
| UINT64 | uUploadTotalSize = _UI64_MAX | |||
| ) | [virtual] |
Reimplemented from fsInternetFile.
Definition at line 381 of file fsFtpFile.cpp.
References asio::detail::socket_ops::accept(), BOOL, CloseHandle(), fsSpeaking::Dialog(), fsSpeaking::DialogFtpResponse(), FALSE, fsWSAErrorToIR(), FTP_TRANSFER_TYPE_ASCII, FTP_TRANSFER_TYPE_BINARY, FtpCommand(), FtpError(), fsInternetServerConnection::GetHandle(), IFDD_TOSERVER, IR_ERROR, IR_NOTINITIALIZED, IR_RANGESNOTAVAIL, IR_SUCCESS, fsInternetFile::m_bContentTypeValid, fsInternetFile::m_bDateValid, m_bDontUseLIST, m_dwTransferType, fsInternetFile::m_enRST, fsInternetFile::m_pServer, m_sFile, m_sRcv, m_strPORT, fsInternetFile::m_uFileSize, NULL, OpenSocket(), ParseSIZE(), PASV_ConnectSocket(), ReceiveExtError(), RST_NONE, RST_PRESENT, and Send_LIST().
Referenced by Open().
| fsFtpTransferType fsFtpFile::GetTransferType | ( | ) |
Definition at line 371 of file fsFtpFile.cpp.
References FTP_TRANSFER_TYPE_ASCII, FTP_TRANSFER_TYPE_BINARY, FTT_ASCII, FTT_BINARY, FTT_UNKNOWN, and m_dwTransferType.
Referenced by fsInternetURLFile::FtpGetTransferType().
| void fsFtpFile::SetDontUseLIST | ( | BOOL | b | ) |
Definition at line 325 of file fsFtpFile.cpp.
References m_bDontUseLIST.
Referenced by fsInternetURLFile::FtpSetDontUseLIST().
| fsInternetResult fsFtpFile::QuerySize | ( | LPCSTR | pszFilePath | ) | [virtual] |
Reimplemented from fsInternetFile.
Definition at line 243 of file fsFtpFile.cpp.
References BOOL, CloseHandle(), fsSpeaking::Dialog(), fsSpeaking::DialogFtpResponse(), FALSE, FTP_TRANSFER_TYPE_BINARY, FtpCommand(), FtpError(), fsInternetServerConnection::GetHandle(), IFDD_TOSERVER, IR_NOTINITIALIZED, IR_SUCCESS, fsInternetFile::m_bContentTypeValid, fsInternetFile::m_bDateValid, m_bDontUseLIST, m_dwTransferType, fsInternetFile::m_pServer, fsInternetFile::m_uFileSize, NULL, ParseSIZE(), and Send_LIST().
| void fsFtpFile::CloseHandle | ( | ) | [virtual] |
Reimplemented from fsInternetFile.
Definition at line 81 of file fsFtpFile.cpp.
References m_sFile, and m_sRcv.
Referenced by OpenEx(), QuerySize(), and ~fsFtpFile().
| fsInternetResult fsFtpFile::SetTransferType | ( | fsFtpTransferType | enType | ) |
Definition at line 45 of file fsFtpFile.cpp.
References FTP_TRANSFER_TYPE_ASCII, FTP_TRANSFER_TYPE_BINARY, FTT_ASCII, FTT_BINARY, IR_INVALIDPARAM, IR_SUCCESS, and m_dwTransferType.
Referenced by fsInternetURLFile::FtpSetTransferType().
| fsInternetResult fsFtpFile::Read | ( | LPBYTE | pBuffer, | |
| DWORD | dwToRead, | |||
| DWORD * | pdwRead | |||
| ) | [virtual] |
Reimplemented from fsInternetFile.
Definition at line 31 of file fsFtpFile.cpp.
References fsWSAErrorToIR(), IR_ERROR, IR_NOTINITIALIZED, IR_SUCCESS, m_sFile, and asio::detail::socket_ops::recv().
| fsInternetResult fsFtpFile::Open | ( | LPCSTR | pszFilePath, | |
| UINT64 | uStartPos | |||
| ) | [virtual] |
Reimplemented from fsInternetFile.
Definition at line 26 of file fsFtpFile.cpp.
References OpenEx().
| BOOL fsFtpFile::FtpCommand | ( | HINTERNET | hConnect, | |
| BOOL | fExpectResponse, | |||
| DWORD | dwFlags, | |||
| LPCSTR | pszCommand, | |||
| DWORD_PTR | dwContext, | |||
| HINTERNET * | phFtpCommand | |||
| ) | [static, protected] |
Definition at line 590 of file fsFtpFile.cpp.
References FtpCommand, and pos().
Referenced by OpenEx(), and QuerySize().
Definition at line 330 of file fsFtpFile.cpp.
References fsSpeaking::Dialog(), fsSpeaking::DialogFtpResponse(), FALSE, FtpFindFirstFile, fsInternetServerConnection::GetHandle(), IFDD_TOSERVER, INTERNET_FLAG_NO_CACHE_WRITE, INTERNET_FLAG_RELOAD, InternetCloseHandle(), fsInternetFile::m_bDateValid, fsInternetFile::m_date, fsInternetFile::m_pServer, fsInternetFile::m_uFileSize, and TRUE.
Referenced by OpenEx(), and QuerySize().
| BOOL fsFtpFile::IsDigit | ( | char | c | ) | [protected] |
| fsInternetResult fsFtpFile::PASV_ConnectSocket | ( | ) | [protected] |
Definition at line 181 of file fsFtpFile.cpp.
References asio::detail::socket_ops::connect(), FALSE, fsWSAErrorToIR(), IR_ERROR, IR_SUCCESS, IsDigit(), fsInternetFile::m_pszLastError, m_sFile, NULL, and asio::detail::socket_ops::socket().
Referenced by OpenEx().
| BOOL fsFtpFile::ParseSIZE | ( | ) | [protected] |
Definition at line 157 of file fsFtpFile.cpp.
References FALSE, fsInternetFile::m_pszLastError, fsInternetFile::m_uFileSize, pos(), ReceiveExtError(), and TRUE.
Referenced by OpenEx(), and QuerySize().
| fsInternetResult fsFtpFile::FtpError | ( | ) | [protected] |
Definition at line 149 of file fsFtpFile.cpp.
References fsWinInetErrorToIR(), IR_EXTERROR, and ReceiveExtError().
Referenced by OpenEx(), and QuerySize().
| SHORT fsFtpFile::OpenSocket | ( | ) | [protected] |
Definition at line 92 of file fsFtpFile.cpp.
References asio::detail::socket_ops::bind(), asio::detail::socket_ops::gethostname(), fsInternetFile::GetLastError(), asio::detail::socket_ops::listen(), m_sRcv, m_strPORT, NULL, and asio::detail::socket_ops::socket().
Referenced by OpenEx().
| void fsFtpFile::ReceiveExtError | ( | ) | [protected] |
Definition at line 64 of file fsFtpFile.cpp.
References fsnew, fsInternetFile::GetLastError(), InternetGetLastResponseInfo, fsInternetFile::m_pszLastError, NULL, and SAFE_DELETE_ARRAY.
Referenced by FtpError(), OpenEx(), and ParseSIZE().
| fsInternetResult fsFtpFile::Write | ( | LPBYTE | pBuffer, | |
| DWORD | dwToWrite, | |||
| DWORD * | pdwWritten | |||
| ) | [virtual] |
Reimplemented from fsInternetFile.
| fsInternetResult fsFtpFile::OpenEx | ( | LPCSTR | pszFilePath, | |
| UINT64 | uStartPos, | |||
| UINT64 | uUploadPartSize = _UI64_MAX, |
|||
| UINT64 | uUploadTotalSize = _UI64_MAX | |||
| ) | [virtual] |
Reimplemented from fsInternetFile.
| fsFtpTransferType fsFtpFile::GetTransferType | ( | ) |
| void fsFtpFile::SetDontUseLIST | ( | BOOL | b | ) |
| virtual fsInternetResult fsFtpFile::QuerySize | ( | LPCSTR | pszFilePath | ) | [virtual] |
Reimplemented from fsInternetFile.
| virtual void fsFtpFile::CloseHandle | ( | ) | [virtual] |
Reimplemented from fsInternetFile.
| fsInternetResult fsFtpFile::SetTransferType | ( | fsFtpTransferType | enType | ) |
| fsInternetResult fsFtpFile::Read | ( | LPBYTE | pBuffer, | |
| DWORD | dwToRead, | |||
| DWORD * | pdwRead | |||
| ) | [virtual] |
Reimplemented from fsInternetFile.
| fsInternetResult fsFtpFile::Open | ( | LPCSTR | pszFilePath, | |
| UINT64 | uStartPos | |||
| ) | [virtual] |
Reimplemented from fsInternetFile.
| static BOOL fsFtpFile::FtpCommand | ( | HINTERNET | hConnect, | |
| BOOL | fExpectResponse, | |||
| DWORD | dwFlags, | |||
| LPCSTR | pszCommand, | |||
| DWORD_PTR | dwContext, | |||
| HINTERNET * | phFtpCommand | |||
| ) | [static, protected] |
| BOOL fsFtpFile::IsDigit | ( | char | c | ) | [protected] |
| fsInternetResult fsFtpFile::PASV_ConnectSocket | ( | ) | [protected] |
| BOOL fsFtpFile::ParseSIZE | ( | ) | [protected] |
| fsInternetResult fsFtpFile::FtpError | ( | ) | [protected] |
| SHORT fsFtpFile::OpenSocket | ( | ) | [protected] |
| void fsFtpFile::ReceiveExtError | ( | ) | [protected] |
BOOL fsFtpFile::m_bDontUseLIST [protected] |
Definition at line 50 of file fsFtpFile.h.
Referenced by fsFtpFile(), OpenEx(), QuerySize(), and SetDontUseLIST().
fsString fsFtpFile::m_strPORT [protected] |
SOCKET fsFtpFile::m_sFile [protected] |
Definition at line 66 of file fsFtpFile.h.
Referenced by CloseHandle(), fsFtpFile(), OpenEx(), PASV_ConnectSocket(), Read(), and Write().
SOCKET fsFtpFile::m_sRcv [protected] |
Definition at line 67 of file fsFtpFile.h.
Referenced by CloseHandle(), fsFtpFile(), OpenEx(), and OpenSocket().
DWORD fsFtpFile::m_dwTransferType [protected] |
Definition at line 69 of file fsFtpFile.h.
Referenced by fsFtpFile(), GetTransferType(), OpenEx(), QuerySize(), and SetTransferType().
1.5.6