SocketTools .NET Edition

FtpServer Members

FtpServer overview

Public Static (Shared) Methods

ErrorText Returns the description of an error code.

Public Instance Constructors

FtpServer Constructor Initializes a new instance of the FtpServer class.

Public Instance Fields

AdapterAddress Returns the IP address associated with the specified network adapter.

Public Instance Properties

AdapterCount Get the number of available local and remote network adapters.
AuthFail Gets and sets the maximum number of authentication attempts permitted.
AuthTime Gets and sets the amount of time a client has to authenticate the session.
CertificateName Gets and sets a value that specifies the name of the server certificate.
CertificatePassword Gets and sets the password associated with the server certificate.
CertificateStore Gets and sets a value that specifies the name of the local certificate store.
CertificateUser Gets and sets the user that owns the server certificate.
ClientAccess Gets and sets the access rights that have been granted to the client session.
ClientAddress Return the Internet address of the current client connection.
ClientCount Return the number of active client sessions connected to the server.
ClientDirectory Return the current working directory for the active client session.
ClientHome Return the home directory for the active client session.
ClientHost Return the host name that the client used to establish the connection.
ClientId Gets the unique client identifier for the current client session.
ClientIdle Gets and sets the maximum number of seconds a client can be idle before the server terminates the session.
ClientPort Gets a value that specifies the port number used by the current client session.
ClientThread Gets the thread ID for the current client session.
ClientUser Return the user name associated with the specified client session.
CommandLine Return the complete command line issued by the client.
Directory Get and set the full path to the root directory assigned to the server.
ExecTime Get and set maximum number of seconds that the server will permit an external command to execute.
ExternalAddress Get and set the external IP address used for passive mode data transfers.
HiddenFiles Determine if the server should permit access to hidden files.
Identity Gets and sets a string that identifies the server to the client.
IdleTime Gets and sets the maximum number of seconds a client can be idle before the server terminates the session.
IsActive Gets a value which indicates if the server is active.
IsAnonymous Determine if the active client session has authenticated as an anonymous user.
IsAuthenticated Determine if the active client session has been authenticated.
IsInitialized Gets a value which indicates if the current instance of the class has been initialized successfully.
IsListening Gets a value which indicates if the server is listening for client connections.
LastError Gets and sets a value which specifies the last error that has occurred.
LastErrorString Gets a value which describes the last error that has occurred.
LocalPath Return the full path to the local file or directory that is the target of the current command.
LocalTime Determines if the server should return file and directory times adjusted for the local timezone.
LocalUser Determines if the server should perform user authentication using the Windows local account database.
LockFiles Determines if files should be exclusively locked when a client attempts to upload or download a file.
LogFile Gets and sets the name of the server log file.
LogFormat Gets and sets the format used when updating the server log file.
LogLevel Gets and sets the level of detail included in the server log file.
MaxClients Gets and sets the maximum number of clients that can connect to the server.
MaxGuests Gets and sets the maximum number of anonymous users that are permitted to connect to the server.
MaxPort Gets and sets the maximum port number used by the server for passive data connections.
MemoryUsage Gets the amount of unmanaged memory currently allocated by the server.
MinPort Gets and sets the maximum port number used by the server for passive data connections.
MultiUser Determine if the server should be started in multi-user mode.
Options Gets and sets the options that may be specified for the server instance.
Priority Gets and sets a value which specifies the server priority.
ReadOnly Determine if the server should prevent clients from uploading files.
Restricted Determine if the server should be started in restricted mode, limiting client access to the server.
Secure Determine if the server should accept secure client connections.
ServerAddress Gets and sets the address that will be used by the server to listen for connections.
ServerHandle Gets the handle to the server created to listen for client connections.
ServerName Gets a value which specifies the host name for the local system.
ServerPort Gets and sets the port number that will be used by the server to listen for connections.
ServerThread Gets the thread ID for the current server.
ServerUuid Gets and sets the Universally Unique Identifier (UUID) associated with the server.
StackSize Gets and sets the size of the stack allocated for threads created by the server.
ThrowError Gets and sets a value which specifies if method calls should throw exceptions when an error occurs.
Trace Gets and sets a value which indicates if network function logging is enabled.
TraceFile Gets and sets a value which specifies the name of the network function tracing logfile.
TraceFlags Gets and sets a value which specifies the network function tracing flags.
UnixMode Determine if the server should impersonate a UNIX-based operating system.
Version Gets a value which returns the current version of the FtpServer class library.
VirtualPath Return the virtual path to the local file or directory that is the target of the current command.

Public Instance Methods

AddUser Overloaded. Add a new virtual user to the server.
Authenticate Overloaded. Authenticate the client and assign access rights for the session.
DeleteUser Remove a virtual user from the server.
Disconnect Overloaded. Disconnect the specified client session from the server.
Dispose Overloaded. Releases all resources used by FtpServer.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
Initialize Overloaded. Initialize an instance of the FtpServer class.
RegisterProgram Overloaded. Register a program for use with the SITE EXEC command.
Reset Reset the internal state of the object, resetting all properties to their default values.
ResolvePath Overloaded. Resolve a path to its full virtual or local file name.
Restart Restarts the server and terminates all active client connections.
Resume Resume accepting new client connections.
SendResponse Overloaded. Send a result code and message to the client in response to a command.
Start Overloaded. Start listening for client connections on the specified IP address and port number.
Stop Stop listening for new client connections and terminate all active clients already connected to the server.
Suspend Suspend accepting new client connections.
Throttle Overloaded. Limit the maximum number of client connections, connections per IP address and connection rate.
ToString (inherited from Object) Returns a String that represents the current Object.
Uninitialize Uninitialize the class library and release any resources allocated for the server.

Public Instance Events

OnAuthenticate Occurs when the client has requested authentication with the specified username and password.
OnCommand Occurs when a client has issued a command to the server.
OnConnect Occurs when a connection is established with the remote host.
OnDisconnect Occurs when the remote host disconnects from the local system.
OnDownload Occurs when a connection is established with the remote host.
OnError Occurs when an network operation fails.
OnExecute Occurs when the client has executed an external program on the server.
OnIdle Occurs when there are no clients connected to the server.
OnLogin Occurs when the client has successfully authenticated the session.
OnLogout Occurs when the client has logged out or reinitialized the session.
OnResult Occurs when the command issued by the client has been processed by the server.
OnStart Occurs when the server starts accepting connections.
OnStop Occurs when the server stops accepting connections.
OnTimeout Occurs when the client has exceeded the maximum allowed idle time.
OnUpload Occurs when the client has successfully uploaded a file to the server.

Protected Instance Methods

Dispose Overloaded. Releases the unmanaged resources allocated by the FtpServer class and optionally releases the managed resources.
Finalize Destroys an instance of the class, releasing the resources allocated for the session and unloading the networking library.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also