ClientName Property  
 

Gets and sets a unique string moniker that is associated with the current client session.

Syntax

object.ClientName [= moniker ]

Remarks

A client moniker is a string which can be used to uniquely identify a specific client session aside from its socket handle. A moniker can be assigned to the client session by setting the ClientName property from within a class event handler such as the OnConnect event.

Monikers are not case-sensitive, and they must be unique so that no client socket for a particular server can have the same moniker. The maximum length for a moniker is 127 characters.

This property only returns a meaningful value when accessed from within an event handler, or a function that has been called from within an event handler.

Data Type

String

See Also

ClientAddress Property, ClientId Property, ServerAddress Property, ServerPort Property