SocketTools .NET Edition

FtpServer.OnLogin Event

Occurs when the client has successfully authenticated the session.

[Visual Basic]
Public Event OnLogin As OnLoginEventHandler
[C#]
public event OnLoginEventHandler OnLogin;

Event Data

The event handler receives an argument of type FtpServer.LoginEventArgs containing data related to this event. The following FtpServer.LoginEventArgs properties provide information specific to this event.

Property Description
ClientId Gets a value that uniquely identifies the client session.
Directory Gets the home directory of the user that has logged into the server.
UserName Gets the username associated with the client that logged into the server.

Remarks

The OnLogin event occurs after the client has successfully authenticated itself using the USER and PASS commands.

This event handler will be invoked in the context of the worker thread that is managing the client session, not the thread that created an instance of the class. Because UI components should only be modified by the thread that created them, the event handler should never attempt to update the user interface directly.

See Also