PowerTCP Sockets for .NET
Connections Field (Server)




Returns a List of Tcp objects representing active connections.
Syntax
'Declaration
 
Public Connections As List(Of Tcp)
'Usage
 
Dim instance As Server
Dim value As List(Of Tcp)
 
value = instance.Connections
 
instance.Connections = value
public List<Tcp> Connections
public: List<Tcp*>* Connections
public:
List<Tcp^>^ Connections
Remarks

When a client connects to the server, a Tcp object representing the connection is added to Connections and the ConnectionsChanged event is raised. When the connection is closed, the connection is removed from Connections and the ConnectionsChanged event is raised again.

Accessing the Connections collection is not thread-safe. Use "lock(server1.Connections)" (C# syntax) to ensure thread safety.

See Also

Reference

Server Class
Server Members


PowerTCP Sockets for .NET Documentation Version 4.5
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic