System.Net.Socket.TFDSet.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function Create: TFDSet; overload; inline; static;
class function Create(const Sockets: array of TSocket): TFDSet; overload; static;
class function Create(const Socket: TSocket): TFDSet; overload; inline; static;

C++

static TFDSet __fastcall Create()/* overload */;
static TFDSet __fastcall Create(TSocket* const *Sockets, const int Sockets_High)/* overload */;
static TFDSet __fastcall Create(TSocket* const Socket)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.Net.Socket.pas
System.Net.Socket.hpp
System.Net.Socket TFDSet

Description

Returns an fd_set structure.

If you do not pass any argument to Create, the returned structure is empty.
If you pass a socket or an array of sockets to Create, Create initializes the returned structure with the specified sockets.

Exceptions

A call to Create can raise any of the following exceptions:

Exception Exception.Message Scenarios

ESocketError

Invalid socket handle

  • The socket handle of one of the specified sockets is invalid. The socket handle of a socket may be invalid in any of the following scenarios:

Number of sockets must not exceed FD_SETSIZE(<number>)

See Also