System.Net.Socket.TSocket.Select
Delphi
class function Select(const CheckRead, CheckWrite, CheckError: PFDSet; Microseconds: Int64): TWaitResult; static;
C++
static System::Types::TWaitResult __fastcall Select(const PFDSet CheckRead, const PFDSet CheckWrite, const PFDSet CheckError, __int64 Microseconds);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.Net.Socket.pas System.Net.Socket.hpp |
System.Net.Socket | TSocket |
Description
Check multiple socket instances for read or write readiness or error state.
Select receives the following parameters:
CheckReadare sockets to check for read readiness.CheckWriteare sockets to check for write readiness.CheckErrorare sockets to check for error state.Microsecondsis the maximum time for Select to wait, in microseconds.
Select returns wrTimeout if the specified time limit expired or wrSignaled otherwise.
Exceptions
A call to Select can raise any of the following exceptions:
| Exception | Exception.Message | Scenarios |
|---|---|---|
|
Network socket error: <error message> (<error code>), on API 'select' |
|
See Also
- select function (MSDN)