PowerTCP Server for ActiveXfrom $499.00
FtpServer ActiveX Control
The FtpServer control is used to build custom FTP server applications. Features include:
- The FtpServer control uses an internal Daemon object and dynamically creates internal TCP objects as each passive connection is automatically accepted. Use this TCP object to send and receive data to that individual connection.
- When a request is received, a corresponding event is raised. Write your own custom handling code in the event handler.
- Add authentication and customized user directories within the Login event.
- Disallow changing directories within the ChangeDirectoryUp and ChangeWorkingDirectory events to those who do not have proper permissions.
- Disallow directory creation/deletion within the MakeDirectory and RemoveDirectory methods to those who do not have proper permissions
- Disallow file upload/download within the Retrieve and Store event to those who do not have proper permissions.
- Visual Studio .NET (.NET Framework)
- Visual Basic (VB)
- Visual C++ (VC++)
- Office 97/2000
|Number of nonsecure TCP connections currently open.
|Regulates whether the events will be raised only at the beginning of an operation, or both at the beginning and the end of an operation.
|Returns the address in use while the Daemon is active and an empty string when the Daemon socket is closed.
|Returns the port number in use while the Daemon is active and 0 when the Daemon is closed.
|Directory for daily log files.
|Maximum time in minutes a session can be idle before it terminates.
|Message sent to the client in response to a QUIT command (when the user logs out).
|Controls whether the ACCT command is requested.
|Indicates whether users can restart file transfers.
|Collection of active Session Objects.
|Text description of the server status. This is the message returned to the client in response to a STAT command.
|System name and type. This is the message returned to the client in response to a SYST command.
|Message returned to the client when the client initially connects.
|Show the About Box.
|Stop the server from listening and accepting new connections, while allowing established connections and sessions to persist.
|Start processing FTP requests.
|Stop the server from accepting new connections and immediately close existing client connections.
|Fires when the client attempts to append to a file (by sending an APPE command).
|Fires when the client sends a CDUP command.
|Fires when the client sends a CWD command.
|Fires when the client sends a custom command.
|Fires when the client sends a DELE command.
|Fires whenever an error condition occurs.
|Fires when the client sends the HELP command.
|Fires when the client sends a LIST command.
|Fires when the client attempts to log into the server.
|Fires when the client sends the QUIT command.
|Fires when the client sends a MKD command.
|Fires when the client sends a NLST command.
|Fires when the client sends a RMD command.
|Fires when the client attempts to rename a file.
|Fires when the client attempts to retrieve a file.
|Fires just before the session is terminated.
|Fires when the client first connects to the server.
|Fires when the client sends the SITE command.
|Fires when the client sends the STAT command.
|Fires when the client attempts to store a file.
|Fires when the client sends the SMNT command.
How easy is the FtpServer ActiveX control to use? Check out the VB examples below, which demonstrates creating a fully-functional FTP Server application which performs user authentication.
Private Sub StartServer()
' Start the server listening on port 21 with the FTP root C:\FtpRoot
Private Sub FtpServer1_Login(ByVal Request As DartFtpServerCtl.IRequest,
ByVal Response As DartFtpServerCtl.IResponse)
' Perform your own username and password validation here. Currently
' for now simply hardcode to only allow username "joe" and password "schmoe".
If Request.Session.User.Name = "joe" And Request.Session.User.Password = "schmoe" Then
' Take no action. Let them log in.
' Reject the login. This will cause a "530 Login incorrect" response.
Request.Session.User = Nothing