System.Win.ScktComp.TServerWinSocket.Connections

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Connections[Index: Integer]: TCustomWinSocket read GetConnections;

C++

__property TCustomWinSocket* Connections[int Index] = {read=GetConnections};

Properties

Type Visibility Source Unit Parent
property public
System.Win.ScktComp.pas
System.Win.ScktComp.hpp
System.Win.ScktComp TServerWinSocket

Description

Lists all TServerClientWinSocket objects that represent open socket connections to client sockets that were accepted by this listening socket.

Use Connections with the ActiveConnections property to iterate over all open socket connections accepted by the listening socket. Each entry in the Connections array is a TServerClientWinSocket object, where an Index of 0 gives the first TServerClientWinSocket, an Index of 1 returns the second TServerClientWinSocket, and so on.

If ServerType is stThreadBlocking, the thread associated with each of the TServerClientWinSocket objects in the Connections array can be obtained using the GetClientThread method.

See Also