Represents the collection of client connections.
Returns the maximum number of licensed connections for the server.
object.Max
Long.
Read-only.
This example returns the maximum number of licensed connections for the server.
set srv = CreateObject ("ucx:Server")
set conns = srv.clients
print ("Maximum connections " &conns.max)
Finds a Connection object in the collection.
object.Element(
ConnectionId As Integer)
The connection number of the object to find.
Connection.
This example returns the specified object in the collection.
’Find the 10th connection and list the connection information
set srv = createobject ("ucx:Server")
set conns = srv.Clients
set Connection=conns.Element(10)
print (Connection.Name) &' is the connection object'
Determines whether or not any more Connection objects exist in the collection.
object.HasMoreElements()
None.
Boolean. Returns TRUE if successful; otherwise, FALSE.
This example determines whether or not any more Connection objects exist in the collection.
’Reset the collection and list the connection information
set srv = createobject ("ucx:Server")
set conns = srv.clients
conns.reset
while (conns.hasmoreelements())
if (Err.Number = 0) Then
Print (connection.Name)
end if
wend
Returns the next Connection object in the collection.
object.Next()
None.
Connection. Returns NULL if the collection has no more elements.
This example returns the next Connection object in the collection.
’Reset the collection and list the connection information
set srv = createobject ("ucx:Server")
set conns = srv.clients
conns.reset()
while (conns.hasmoreelements())
set Connection = conns.next
if (Err.Number = 0) Then
Print (Connection.Name)
end if
wend
Resets the collection and starts an iteration.
object.Reset()
None.
Void.
This example resets the collection and starts an iteration.
Set srv = CreateObject ("ucx:Server")
’Returns the collection of client connection
Set conns = srv.clients
’Returns the maximum number of licensed connections
Print ("Maximum licensed connections is: " &conns.max)
’Find the 10th connection and list the connection information
Set Connection=conns.Element(10)
Print (Connection.Name) &" is the connection object for
connection number 10"
’Resets the collection and list the connection information
conns.Reset()
While (conns.Hasmoreelements())
Set Connection = conns.Next()
If (Err.Number = 0) Then
Print (Connection.Name)
End If
Wend