System.Net.Socket.TFDSet.Create
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 |
---|---|---|
Invalid socket handle |
| |
Number of sockets must not exceed FD_SETSIZE(<number>) |
|
See Also
- fd_set (MSDN)