Back to product page

Users property


Holds reference to collection of currently connected users.

Type

A FtpUsers object.

Syntax

  • Basic
object.Users
The Users(object) syntax has these parts:
objectAn expression evaluating to an object of type wodFTPD.

Remarks

If you want to access information about users currently connected to your FTP server, you will use this property. In 'technical' words, it will give you pointer to IFTPUsers object, but this means much more.

First, you will be able to determine total number of connected users using Count property.

Second, you will be able to access information about specific user using his index and Item property. For instance, you can see IP address of computer from where first user connected, you can do it like this:
 
Debug.Print wodFTPD1.Users.Item(0).RemoteIP
 

or shorter
 
Debug.Print wodFTPD1.Users(0).RemoteIP
 

This is readonly property, and it has only members for accessing existing objects (users), not adding new ones. This is so that FTP server adds new users as they arrive (and removes them).

Platforms

Windows