System.Net.Socket.TFDSet

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

  TFDSet = record
  private
    FFDSet: fd_set;
{$IFDEF POSIX}
    FNFds: Integer;
{$ENDIF}
    class function CreateNew(const Sockets: array of TSocket): TFDSet; overload; static;
    procedure ValidateHandle(const ASocket: TSocket); inline;
    function GetFdSet: PFd_Set;
    function GetMaxFd: Integer;
    procedure &Set(const AHandle: TSocketHandle); overload;
    procedure Clear(const AHandle: TSocketHandle); overload; inline;
    function IsSet(const AHandle: TSocketHandle): Boolean; overload; inline;
  public
    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;
    procedure &Set(const ASocket: TSocket); overload; inline;
    procedure Clear(const ASocket: TSocket); overload;
    procedure Zero;
    function IsSet(const ASocket: TSocket): Boolean; overload;
    class operator Implicit(const [Ref] AFDSet: TFDSet): PFDSet;
    property FdSet: PFd_set read GetFdSet;
    property MaxFd: Integer read GetMaxFd;
  end;

C++

struct DECLSPEC_DRECORD TFDSet
{
private:
    fd_set FFDSet;
    static TFDSet __fastcall CreateNew(TSocket* const *Sockets, const int Sockets_High)/* overload */;
    void __fastcall ValidateHandle(TSocket* const ASocket);
    Winapi::Winsock2::PFdSet __fastcall GetFdSet(void);
    int __fastcall GetMaxFd(void);
    void __fastcall Set(const NativeUInt AHandle)/* overload */;
    void __fastcall Clear(const NativeUInt AHandle)/* overload */;
    bool __fastcall IsSet(const NativeUInt AHandle)/* overload */;
public:
    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 */;
    void __fastcall Set(TSocket* const ASocket)/* overload */;
    void __fastcall Clear(TSocket* const ASocket)/* overload */;
    void __fastcall Zero(void);
    bool __fastcall IsSet(TSocket* const ASocket)/* overload */;
    __fastcall operator PFDSet();
    __property Winapi::Winsock2::PFdSet FdSet = {read=GetFdSet};
    __property int MaxFd = {read=GetMaxFd};
};

Propriétés

Type Visibilité  Source Unité  Parent
record
struct
public
System.Net.Socket.pas
System.Net.Socket.hpp
System.Net.Socket System.Net.Socket


Description

Descripteur de socket à utiliser avec TSocket.Select.

Voir aussi