Difference between revisions of "TFtpServer"
Jump to navigation
Jump to search
| Line 53: | Line 53: | ||
|} | |} | ||
| − | == | + | == Events == |
| + | |||
| + | {| | ||
| + | | valign="top" width="150" | [[TFtpClient.OnStart | OnStart]] |||| OnStart. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnStop | OnStop]] |||| OnStop. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnAuthenticate | OnAuthenticate]] |||| OnAuthenticate. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnClientDisconnect | OnClientDisconnect]] |||| OnClientDisconnect. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnClientConnect | OnClientConnect]] |||| OnClientConnect. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnClientCommand | OnClientCommand]] |||| OnClientCommand. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnAnswerToClient | OnAnswerToClient]] |||| OnAnswerToClient. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnChangeDirectory | OnChangeDirectory]] |||| OnChangeDirectory. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnMakeDirectory | OnMakeDirectory]] |||| OnMakeDirectory. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnBuildDirectory | OnBuildDirectory]] |||| OnBuildDirectory. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnAlterDirectory | OnAlterDirectory]] |||| OnAlterDirectory. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnStorSessionConnected | OnStorSessionConnected]] |||| OnStorSessionConnected. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnRetrSessionConnected | OnRetrSessionConnected]] |||| OnRetrSessionConnected. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnRetrSessionClosed | OnRetrSessionClosed]] |||| OnRetrSessionClosed. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnRetrDataSent | OnRetrDataSent]] |||| OnRetrDataSent. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnValidatePut | OnValidatePut]] |||| OnValidatePut. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnValidateSize | OnValidateSize]] |||| OnValidateSize. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnValidateDele | OnValidateDele]] |||| OnValidateDele. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnValidateRmd | OnValidateRmd]] |||| OnValidateRmd. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnValidateRnFr | OnValidateRnfr]] |||| OnValidateRnFr. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnValidateRnTo | OnValidateRnTo]] |||| OnValidateRnTo. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnValidateGet | OnValidateGet]] |||| OnValidateGet. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnStorDataAvailable | OnStorDataAvailable]] |||| OnStorDataAvailable. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnGetUniqueFileName | OnGetUniqueFileName]] |||| OnGetUniqueFileName. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnGetProcessing | OnGetProcessing]] |||| OnGetProcessing. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnBuildFilePath | OnBuildFilePath]] |||| OnBuildFilePath. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnValidateMfmt | OnValidateMfmt]] |||| OnValidateMfmt. | ||
| + | |- | ||
| + | | valign="top" | [[TFtpClient.OnCalculateMd5 | OnCalculateMd5]] |||| OnCalculateMd5. | ||
| + | |} | ||
== How to == | == How to == | ||
{{Components_Footer}} | {{Components_Footer}} | ||
Revision as of 16:55, 3 December 2006
Main page -> ICS components reference -> TFtpServer
Contents
Overview
- unit FtpSrv.pas
- inheritance TFtpServer - TComponent
TFtpServer component is implementing the server side FTP protocol described in RFC 959. FTP protocol is the standard protocol for transfering files.
Properties
| Addr | IP address of the interface to listen on. Use 0.0.0.0 to listen on all interfaces. | |
| Port | TCP port to listen to. | |
| Banner | Welcome message sent to client. | |
| UserData | Data passed to each client instance. | |
| MaxClient | Maximum number of simultaneous client to be accepted. | |
| PasvIpAddr | IP address used for passive mode. | |
| PasvPortRangeStart | TCP port range start to be used for passive mode. | |
| PasvPortRangeSize | TCP port range size to be used for passive mode. | |
| Options | Options set to change component behaviour. | |
| ClientCount | Actual number of connected clients. Runtime only. | |
| Client | Array of connected clients. Runtime only. | |
| Active | Set/Get server state. Runtime only. | |
| Handle | Handle for underlaying hidden window. Runtime only. | |
| ServSocket | Underlaying listening socket. Runtime only. |
Methods
| Start | Make the server listening for clients. | |
| Stop | Make the server stop listening for client. Doesn't disconnect connected clients. | |
| Disconnect | Disconnect a single client. | |
| DisconnectAll | Disconnect all clients. | |
| IsClient | Check if an instance is an actual client. |
Events
| OnStart | OnStart. | |
| OnStop | OnStop. | |
| OnAuthenticate | OnAuthenticate. | |
| OnClientDisconnect | OnClientDisconnect. | |
| OnClientConnect | OnClientConnect. | |
| OnClientCommand | OnClientCommand. | |
| OnAnswerToClient | OnAnswerToClient. | |
| OnChangeDirectory | OnChangeDirectory. | |
| OnMakeDirectory | OnMakeDirectory. | |
| OnBuildDirectory | OnBuildDirectory. | |
| OnAlterDirectory | OnAlterDirectory. | |
| OnStorSessionConnected | OnStorSessionConnected. | |
| OnRetrSessionConnected | OnRetrSessionConnected. | |
| OnRetrSessionClosed | OnRetrSessionClosed. | |
| OnRetrDataSent | OnRetrDataSent. | |
| OnValidatePut | OnValidatePut. | |
| OnValidateSize | OnValidateSize. | |
| OnValidateDele | OnValidateDele. | |
| OnValidateRmd | OnValidateRmd. | |
| OnValidateRnfr | OnValidateRnFr. | |
| OnValidateRnTo | OnValidateRnTo. | |
| OnValidateGet | OnValidateGet. | |
| OnStorDataAvailable | OnStorDataAvailable. | |
| OnGetUniqueFileName | OnGetUniqueFileName. | |
| OnGetProcessing | OnGetProcessing. | |
| OnBuildFilePath | OnBuildFilePath. | |
| OnValidateMfmt | OnValidateMfmt. | |
| OnCalculateMd5 | OnCalculateMd5. |