![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cClientFTPData.h>
Public Member Functions | |
cClientFTPData (cFTPFactory &rFactory, IUnkObject *pServerConnection, cStreamInput *pStreamInp, cStreamOutput *pStreamOut) | |
virtual | ~cClientFTPData () |
void | AssignCmd (cClientFTP *pControl) |
HRESULT GRAYCALL | CmdData_Retr_SendFile () |
HRESULT GRAYCALL | CmdData_Stor_ReceiveFile () |
HRESULT GRAYCALL | CmdData_List_SendDir () |
HRESULT GRAYCALL | CmdData_List_SendUserGroupRoot () |
virtual HRESULT | DisposeThis () override |
virtual HRESULT | ProcessStreamPacket () override |
virtual HRESULT | OnTickStream () override |
![]() | |
cClientFTPBase (IProtocolFactory *pFactory, IUnkObject *pServerConnection, cStreamInput *pStreamInp, cStreamOutput *pStreamOut) | |
virtual | ~cClientFTPBase () |
HASHCODE_t | get_HashCode () const noexcept |
cNetServerConnection * | get_NetStream () const |
IUNKNOWN_DISAMBIG (cRefBase) | |
![]() | |
cRefBase (int iRefCount=0) noexcept | |
virtual | ~cRefBase () |
int | get_RefCount () const noexcept |
HASHCODE_t | get_HashCode () const noexcept |
STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept | |
virtual void | onFinalRelease () |
bool | isValidObj () const noexcept |
STDMETHOD_ (ULONG, AddRef)(void) override | |
STDMETHOD_ (ULONG, Release)(void) override | |
STDMETHOD() | QueryInterface (const IID &riid, void __RPC_FAR *__RPC_FAR *ppvObject) override |
void | IncRefCount () |
void | DecRefCount () |
bool | isStaticConstruct () const noexcept |
void | StaticConstruct () |
void | StaticDestruct () |
bool | isDestructing () noexcept |
void | SetDestructing () |
![]() | |
cProtocolStream (IProtocolFactory *pProtocolFactory, IUnkObject *pServerConnection, cStreamInput *pStreamInp, cStreamOutput *pStreamOut) | |
virtual | ~cProtocolStream () |
HASHCODE_t | get_HashCode () const noexcept |
STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept override | |
STDMETHOD_ (cString, get_Name)() const override | |
STDMETHOD_ (cStringA, get_SymName)() const override | |
bool | isConnected () const |
cStreamInput * | get_StreamInp () const |
cStreamOutput * | get_StreamOut () const |
virtual size_t | get_ProtocolMaxMessageSize () const |
Static Public Member Functions | |
static StrLen_t GRAYCALL | CmdData_List_DateTime (char *pBuffer, StrLen_t iSizeMax, const cTimeUnits *pSysTime) |
static StrLen_t GRAYCALL | CmdData_List_Format (char *pBuffer, StrLen_t iSizeMax, const char *pszName, DWORD dwFileAttributes, STREAM_POS_t nFileSize, const cTimeUnits *pSysTime, bool bVerbose, TZ_TYPE nTZDisp) |
static StrLen_t GRAYCALL | CmdData_List_Entry (char *pBuffer, StrLen_t iSizeMax, const cFileFindEntry &fd, bool bVerbose, TZ_TYPE nTZDisp) |
Public Attributes | |
cClientFTPPtr | m_pCC |
My parent control connection. ALWAYS not nullptr. More... | |
cFTPDataParamsPtr | m_pDataParams |
Params for this data connection. More... | |
![]() | |
TIMESYS_t | m_timeLast |
time of last command/action. More... | |
![]() | |
IProtocolFactory *const | m_pProtocolFactory |
What IProtocolFactory produced this? More... | |
IUnkObject *const | m_pServerConnection |
the cNetServerConnection or other top level parent for this protocol. More... | |
HASHCODE_t const | m_nHashCode |
the m_pClient->get_HashCode() id for this client connection/stream. More... | |
Additional Inherited Members | |
![]() | |
cStreamInput * | m_pStreamInp |
for use with ProcessStreamPacket() More... | |
cStreamOutput * | m_pStreamOut |
TX responses back to the remote client go here. (e.g. cNetServerConnection->cNetStream) More... | |
cString | m_sName |
a user readable name. Usually the IP address or reverse DNS lookup. can be upgraded as lookup or login becomes avail. m_pClient->get_Name() More... | |
A FTP data connection for a cClientFTP control connection. There can be multiple data connections for a control connection.
GrayFTP::cClientFTPData::cClientFTPData | ( | cFTPFactory & | rFactory, |
IUnkObject * | pServerConnection, | ||
cStreamInput * | pStreamInp, | ||
cStreamOutput * | pStreamOut | ||
) |
pClient = cNetServerConnection
|
virtual |
void GrayFTP::cClientFTPData::AssignCmd | ( | cClientFTP * | pControl | ) |
|
static |
called from CmdData_List_Format() ASSUME: size >= 128
|
static |
|
static |
for 'windows_NT version 4.0' -------— 1 owner group 1536 Aug 31 17:04 name.ext d------— 1 owner group 0 Aug 31 17:04 dirname
e.g. for 'Windows_NT version 5.0' or 'Windows_NT' 06-03-99 11:13PM 342 help.gif
FTP_DATAFUNC_t LIST command FTP_DATA_FLAG_VERBOSE or not. Put aliases in the user root.
FTP_DATAFUNC_t Send the group/roots the user has access to.
client requested a server side file. FTP_DATAFUNC_t
client is storing a file on the server. FTP_DATAFUNC_t ? We are done when the connection closes ?
|
overridevirtual |
done with the data connection.
Reimplemented from GrayLib::cProtocolStream.
|
overridevirtual |
A data connection once actually connected will indicate that write is possible. e.g. m_pDataFunc = CmdData_List_SendDir, CmdData_List_SendUserGroupRoot, CmdData_Retr_SendFile etc
Reimplemented from GrayLib::cProtocolStream.
|
overridevirtual |
Process input data. e.g. m_pDataFunc = CmdData_Stor_ReceiveFile
Reimplemented from GrayLib::cProtocolStream.
cClientFTPPtr GrayFTP::cClientFTPData::m_pCC |
My parent control connection. ALWAYS not nullptr.
cFTPDataParamsPtr GrayFTP::cClientFTPData::m_pDataParams |
Params for this data connection.