System.Net.Socket.TSocket.Select

From RAD Studio API Documentation
Jump to: navigation, search

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:

  • CheckRead are sockets to check for read readiness.
  • CheckWrite are sockets to check for write readiness.
  • CheckError are sockets to check for error state.
  • Microseconds is 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

ESocketError

Network socket error: <error message> (<error code>), on API 'select'

See Also