help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes] Reference for unit 'lNet' (#LNet)

TLConnection.Socks

The array property of sockets on connection

Declaration

Source position: lnet.pp line 306

public property TLConnection.Socks: TLSocket
  read GetItem;
  default;

Description

This is an array property containing all sockets in the connection.

Note that the order of sockets it NOT given durins the lifetime of a given connection. 
For example in a TCP server, you might initially have 3 active sockets. 
But later, socket 1 might disconnect. This means that socket 2 becomes socket 1 and socket 3 becomes socket 2.
This property is therefor deprecated and might get removed.

The iterator property with IterReset and IterNext should be used to go over all sockets in a connection.
If you require indexing of sockets, your design is somehow flawed.
(I know that lNet used this in the past, but it was a mistake)

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505