* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Author: François PIETTE
Description: TFtpCtrlSocket component. It handle the client connection for
the TFtpServer component.
EMail: francois.piette@ping.be http://www.rtfm.be/fpiette
francois.piette@rtfm.be
Creation: April 21, 1998
Version: 0.94 *BETA*
WebSite: http://www.rtfm.be/fpiette/indexuk.htm
Support: Use the mailing list twsocket@rtfm.be See website for details.
Legal issues: Copyright (C) 1997 by François PIETTE
This software is provided 'as-is', without any express or
implied warranty. In no event will the author be held liable
for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any
purpose, including commercial applications, and to alter it
and redistribute it freely, subject to the following
restrictions:
1. The origin of this software must not be misrepresented,
you must not claim that you wrote the original software.
If you use this software in a product, an acknowledgment
in the product documentation would be appreciated but is
not required.
2. Altered source versions must be plainly marked as such, and
must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any source
distribution.
History:
Apr 29, 1998 V0.90 released for beta testing.
May 03, 1998 V0.93 Adapted for Delphi 2.0 and C++Builder
May 04, 1998 V0.94 Added support for UNC (not finished !)
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * TFtpCtrlSocket -
IsUNC - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
TCommandEvent
TDisplayEvent
TFtpCmdType
TFtpCtrlState
TFtpOption
TFtpOptions
DefaultRcvSize
FtpCtrlSocketVersion
function IsUNC(S : String) : Boolean;
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
TCommandEvent = procedure (Sender : TObject; CmdBuf : PChar; CmdLen : Integer) of object
TDisplayEvent = procedure (Sender : TObject; Msg : String) of object
TFtpCmdType = (ftpcPORT, ftpcSTOR, ftpcRETR, ftpcCWD, ftpcXPWD, ftpcPWD,
ftpcUSER, ftpcPASS, ftpcLIST, ftpcRMD, ftpcTYPE, ftpcSYST,
ftpcQUIT, ftpcDELE, ftpcRNFR, ftpcMKD, ftpcRNTO, ftpcNOOP,
ftpcNLST, ftpcABOR, ftpcCDUP, ftpcSIZE, ftpcREST);
TFtpCtrlState = (ftpcInvalid, ftpcWaitingUserCode, ftpcWaitingPassword,
ftpcReady, ftpcWaitingAnswer);
TFtpOption = (ftpcUNC);
TFtpOptions = set of TFtpOption
DefaultRcvSize = 2048
FtpCtrlSocketVersion = 094
Enable partial boolean evaluation } {$T-} { Untyped pointers } {$IFNDEF VER80} {$J+} { Allow typed constant to be modified } {$ENDIF