RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TServerWinSocket.Connections Property

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

Pascal
property Connections [Index: Integer]: TCustomWinSocket;
C++
__property TCustomWinSocket Connections[int Index];

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!