#include <FtpDTP.h>
Public Member Functions | |
FtpDTP () | |
virtual | ~FtpDTP () |
OStatus | Initialize (const OID &myoid, const antStackRef &ipstack, void *index) |
bool | ListenCont (TCPEndpointListenMsg *listenMsg) |
bool | ConnectCont (TCPEndpointConnectMsg *connectMsg) |
bool | SendCont (TCPEndpointSendMsg *sendMsg) |
bool | ReceiveCont (TCPEndpointReceiveMsg *receiveMsg) |
void | CloseCont (TCPEndpointCloseMsg *closeMsg) |
OStatus | Close () |
void | SetType (FTPDataType type) |
void | SetUser (char *user) |
void | SetHome (char *home) |
ConnectionState | GetState () |
FTPDataType | GetType () |
char * | GetFilename () |
char * | GetDirectry () |
size_t | GetFileSize (char *name) |
char * | GetUser () |
Port | SetIP (IPAddress ip) |
bool | SetPort (char *ipport) |
bool | Retrieve (char *filename) |
bool | Store (char *filename) |
bool | ChangeDir (char *dir) |
bool | MakeDir (char *dir) |
bool | RemoveDir (char *dir) |
bool | Delete (char *filename) |
bool | List (char *dir) |
bool | RenameFrom (char *file) |
bool | RenameTo (char *file) |
void | ResetFilename () |
Private Member Functions | |
OStatus | Listen () |
OStatus | Connect () |
OStatus | Send () |
OStatus | Receive () |
void | Save (byte *data, int length, bool end=true) |
void | DirNorm (char *dir) |
bool | RetrieveSend () |
bool | ListSend () |
Private Attributes | |
OID | myOID |
antStackRef | ipstackRef |
IPAddress | connectIP |
Port | connectPort |
FTPMethod | method |
bool | passive |
FTPDataType | dataType |
char | ftpUser [MAX_STRING_LENGTH] |
char | ftpHome [MAX_STRING_LENGTH] |
char | ftpDir [MAX_STRING_LENGTH] |
char | ftpFile [MAX_STRING_LENGTH] |
bool | listLong |
bool | total |
FILE * | fp |
DIR * | dirp |
void * | continuation |
TCPConnection | connection |
|
|
|
|
|
Definition at line 359 of file FtpMethod.cc. References DirNorm(), ftpDir, ftpHome, and MAX_STRING_LENGTH. Referenced by FtpPI::RequestProcess(). |
|
Definition at line 351 of file FtpDTP.cc. References connection, CONNECTION_CLOSED, connectPort, dataType, TCPConnection::endpoint, ipstackRef, method, myOID, passive, ResetFilename(), and TCPConnection::state. Referenced by FtpPI::Close(), ConnectCont(), List(), ListenCont(), ReceiveCont(), and SendCont(). |
|
Definition at line 375 of file FtpDTP.cc. References connection, and TCPConnection::state. Referenced by FtpPI::CloseContforDTP(). |
|
Definition at line 119 of file FtpDTP.cc. References connection, connectIP, connectPort, continuation, TCPConnection::endpoint, FTP_BUFFER_SIZE, FTP_DATA_PORT, ipstackRef, myOID, and TCPConnection::state. Referenced by List(), Retrieve(), and Store(). |
|
Definition at line 201 of file FtpDTP.cc. References Close(), connection, FTP_METHOD_LIST, FTP_METHOD_RETR, FTP_METHOD_STOR, ListSend(), Receive(), TCPConnection::recvSize, RetrieveSend(), and TCPConnection::state. Referenced by FtpPI::ConnectContforDTP(). |
|
Definition at line 428 of file FtpMethod.cc. References DirNorm(), ftpDir, ftpHome, and MAX_STRING_LENGTH. Referenced by FtpPI::RequestProcess(). |
|
Definition at line 494 of file FtpMethod.cc. References MAX_STRING_LENGTH. Referenced by ChangeDir(), Delete(), List(), ListSend(), MakeDir(), RemoveDir(), RenameFrom(), RenameTo(), Retrieve(), SetHome(), and Store(). |
|
Definition at line 50 of file FtpDTP.h. Referenced by FtpPI::RequestProcess(). |
|
Definition at line 49 of file FtpDTP.h. Referenced by FtpPI::ConnectContforDTP(), FtpPI::ListenContforDTP(), and FtpPI::RequestProcess(). |
|
Definition at line 461 of file FtpMethod.cc. |
|
Definition at line 47 of file FtpDTP.h. References ConnectionState. Referenced by FtpPI::ReceiveContforDTP(), and FtpPI::SendContforDTP(). |
|
Definition at line 48 of file FtpDTP.h. References FTPDataType. Referenced by FtpPI::ConnectContforDTP(), and FtpPI::ListenContforDTP(). |
|
Definition at line 52 of file FtpDTP.h. Referenced by FtpPI::RequestProcess(). |
|
Definition at line 21 of file FtpDTP.cc. References byte, connection, connectPort, continuation, dataType, FTP_BUFFER_SIZE, ftpDir, ipstackRef, method, myOID, passive, TCPConnection::recvBuffer, TCPConnection::recvData, ResetFilename(), TCPConnection::sendBuffer, TCPConnection::sendData, and TCPConnection::state. Referenced by FtpPI::Initialize(). |
|
Definition at line 253 of file FtpMethod.cc. References Close(), Connect(), connection, DirNorm(), dirp, ftpDir, ftpFile, ftpHome, listLong, ListSend(), MAX_STRING_LENGTH, method, TCPConnection::state, and total. Referenced by FtpPI::RequestProcess(). |
|
Definition at line 81 of file FtpDTP.cc. References connection, connectPort, continuation, TCPConnection::endpoint, FTP_BUFFER_SIZE, IP_ADDR_ANY(), ipstackRef, myOID, and TCPConnection::state. Referenced by SetIP(). |
|
Definition at line 158 of file FtpDTP.cc. References Close(), connection, FTP_METHOD_LIST, FTP_METHOD_RETR, FTP_METHOD_STOR, ListSend(), Receive(), TCPConnection::recvSize, RetrieveSend(), and TCPConnection::state. Referenced by FtpPI::ListenContforDTP(). |
|
Definition at line 293 of file FtpMethod.cc. References connection, DirNorm(), dirp, ftpFile, method, Send(), TCPConnection::sendData, TCPConnection::sendSize, and total. Referenced by ConnectCont(), List(), ListenCont(), and SendCont(). |
|
Definition at line 384 of file FtpMethod.cc. References DirNorm(), ftpDir, ftpHome, and MAX_STRING_LENGTH. Referenced by FtpPI::RequestProcess(). |
|
Definition at line 301 of file FtpDTP.cc. References connection, CONNECTION_CONNECTED, TCPConnection::endpoint, FTP_BUFFER_SIZE, ipstackRef, myOID, TCPConnection::recvData, and TCPConnection::state. Referenced by ConnectCont(), ListenCont(), ReceiveCont(), and Store(). |
|
Definition at line 322 of file FtpDTP.cc. References Close(), connection, Receive(), TCPConnection::recvData, TCPConnection::recvSize, Save(), and TCPConnection::state. Referenced by FtpPI::ReceiveContforDTP(). |
|
Definition at line 406 of file FtpMethod.cc. References DirNorm(), ftpDir, ftpHome, and MAX_STRING_LENGTH. Referenced by FtpPI::RequestProcess(). |
|
Definition at line 203 of file FtpMethod.cc. References DirNorm(), fp, ftpDir, ftpFile, ftpHome, and MAX_STRING_LENGTH. Referenced by FtpPI::RequestProcess(). |
|
Definition at line 228 of file FtpMethod.cc. References DirNorm(), ftpDir, ftpFile, ftpHome, and MAX_STRING_LENGTH. Referenced by FtpPI::RequestProcess(). |
|
Definition at line 473 of file FtpMethod.cc. References ftpFile. Referenced by Close(), Initialize(), and FtpPI::RequestProcess(). |
|
Definition at line 111 of file FtpMethod.cc. References Connect(), connection, DirNorm(), fp, ftpDir, ftpFile, ftpHome, MAX_STRING_LENGTH, method, RetrieveSend(), and TCPConnection::state. Referenced by FtpPI::RequestProcess(). |
|
Definition at line 146 of file FtpMethod.cc. References byte, connection, dataType, fp, FTP_BUFFER_SIZE, method, TCPConnection::recvData, TCPConnection::recvSize, Send(), TCPConnection::sendData, and TCPConnection::sendSize. Referenced by ConnectCont(), ListenCont(), Retrieve(), and SendCont(). |
|
Definition at line 450 of file FtpMethod.cc. Referenced by ReceiveCont(). |
|
Definition at line 235 of file FtpDTP.cc. References connection, TCPConnection::endpoint, ipstackRef, myOID, TCPConnection::sendData, TCPConnection::sendSize, and TCPConnection::state. Referenced by ListSend(), and RetrieveSend(). |
|
Definition at line 258 of file FtpDTP.cc. References Close(), connection, FTP_METHOD_LIST, FTP_METHOD_RETR, ListSend(), method, RetrieveSend(), and TCPConnection::state. Referenced by FtpPI::SendContforDTP(). |
|
Definition at line 485 of file FtpMethod.cc. References DirNorm(), ftpDir, and ftpHome. Referenced by FtpPI::RequestProcess(). |
|
Definition at line 22 of file FtpMethod.cc. References connectIP, connectPort, FTP_PASV_DATA_PORT, Listen(), and passive. Referenced by FtpPI::RequestProcess(). |
|
Definition at line 32 of file FtpMethod.cc. References connectIP, connectPort, longword, and passive. Referenced by FtpPI::RequestProcess(). |
|
Definition at line 42 of file FtpDTP.h. Referenced by FtpPI::RequestProcess(). |
|
Definition at line 479 of file FtpMethod.cc. References ftpUser, and MAX_STRING_LENGTH. Referenced by FtpPI::RequestProcess(). |
|
Definition at line 75 of file FtpMethod.cc. References Connect(), connection, DirNorm(), fp, ftpDir, ftpFile, ftpHome, MAX_STRING_LENGTH, method, Receive(), TCPConnection::recvSize, and TCPConnection::state. Referenced by FtpPI::RequestProcess(). |
|
Definition at line 100 of file FtpDTP.h. Referenced by Close(), CloseCont(), Connect(), ConnectCont(), Initialize(), List(), Listen(), ListenCont(), ListSend(), Receive(), ReceiveCont(), Retrieve(), RetrieveSend(), Send(), SendCont(), and Store(). |
|
|
|
Definition at line 84 of file FtpDTP.h. Referenced by Close(), Connect(), Initialize(), Listen(), SetIP(), and SetPort(). |
|
Definition at line 99 of file FtpDTP.h. Referenced by Connect(), Initialize(), and Listen(). |
|
Definition at line 89 of file FtpDTP.h. Referenced by Close(), Initialize(), and RetrieveSend(). |
|
Definition at line 97 of file FtpDTP.h. Referenced by List(), and ListSend(). |
|
Definition at line 96 of file FtpDTP.h. Referenced by RenameFrom(), Retrieve(), RetrieveSend(), Save(), and Store(). |
|
Definition at line 92 of file FtpDTP.h. Referenced by ChangeDir(), Delete(), Initialize(), List(), MakeDir(), RemoveDir(), RenameFrom(), RenameTo(), Retrieve(), SetHome(), and Store(). |
|
Definition at line 93 of file FtpDTP.h. Referenced by List(), ListSend(), RenameFrom(), RenameTo(), ResetFilename(), Retrieve(), Save(), and Store(). |
|
Definition at line 91 of file FtpDTP.h. Referenced by ChangeDir(), Delete(), List(), MakeDir(), RemoveDir(), RenameFrom(), RenameTo(), Retrieve(), SetHome(), and Store(). |
|
Definition at line 90 of file FtpDTP.h. Referenced by SetUser(). |
|
Definition at line 80 of file FtpDTP.h. Referenced by Close(), Connect(), Initialize(), Listen(), Receive(), and Send(). |
|
Definition at line 94 of file FtpDTP.h. Referenced by List(). |
|
Definition at line 85 of file FtpDTP.h. Referenced by Close(), Initialize(), List(), ListSend(), Retrieve(), RetrieveSend(), SendCont(), and Store(). |
|
Definition at line 79 of file FtpDTP.h. Referenced by Close(), Connect(), Initialize(), Listen(), Receive(), and Send(). |
|
Definition at line 86 of file FtpDTP.h. Referenced by Close(), Initialize(), SetIP(), and SetPort(). |
|
Definition at line 95 of file FtpDTP.h. Referenced by List(), and ListSend(). |