API:System.Net.Socket.TIPAddress

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

  TIPAddress = record
  private
    FAddr: in_addr;
    class function GetLocalHost: TIPAddress; static; inline;
    class function GetBroadcast: TIPAddress; static; inline;
    class function GetAny: TIPAddress; static; inline;
    class function OctetsToN(const B1, B2, B3, B4: Byte): Cardinal; static; inline;
    function GetAddress: string;
  public
    class function Create(const Name: string): TIPAddress; overload; static;
    class function Create(const Address: Cardinal): TIPAddress; overload; static;
    class function Create(const B1, B2, B3, B4: Byte): TIPAddress; overload; static;
    class function Create(const Address: TIPAddress; Mask: TIPAddress): TIPAddress; overload; static;
    class function Create(const Address: in_addr): TIPAddress; overload; static;
    class function LookupName(const Name: string): TIPAddress; static;
    class function LookupAddress(const Address: string): TIPAddress; static;
    class operator Implicit(const Address: TIPAddress): in_addr; inline;
    property Addr: in_addr read FAddr;
    property Address: string read GetAddress;
    class property Any: TIPAddress read GetAny;
    class property LocalHost: TIPAddress read GetLocalHost;
    class property Broadcast: TIPAddress read GetBroadcast;
  end;

C++

struct DECLSPEC_DRECORD TIPAddress
{
private:
    in_addr FAddr;
    static TIPAddress __fastcall GetLocalHost();
    static TIPAddress __fastcall GetBroadcast();
    static TIPAddress __fastcall GetAny();
    static unsigned __fastcall OctetsToN(const System::Byte B1, const System::Byte B2, const System::Byte B3, const System::Byte B4);
    System::UnicodeString __fastcall GetAddress();
public:
    static TIPAddress __fastcall Create(const System::UnicodeString Name)/* overload */;
    static TIPAddress __fastcall Create(const unsigned Address)/* overload */;
    static TIPAddress __fastcall Create(const System::Byte B1, const System::Byte B2, const System::Byte B3, const System::Byte B4)/* overload */;
    static TIPAddress __fastcall Create(const TIPAddress Address, TIPAddress Mask)/* overload */;
    static TIPAddress __fastcall Create(const in_addr Address)/* overload */;
    static TIPAddress __fastcall LookupName(const System::UnicodeString Name);
    static TIPAddress __fastcall LookupAddress(const System::UnicodeString Address);
    __fastcall operator in_addr();
    __property in_addr Addr = {read=FAddr};
    __property System::UnicodeString Address = {read=GetAddress};
    /* static */ __property TIPAddress Any = {read=GetAny};
    /* static */ __property TIPAddress LocalHost = {read=GetLocalHost};
    /* static */ __property TIPAddress Broadcast = {read=GetBroadcast};
};

プロパティ

種類 可視性 ソース ユニット
record
struct
public
System.Net.Socket.pas
System.Net.Socket.hpp
System.Net.Socket System.Net.Socket

説明

このトピックには現在ドキュメントが存在しません。「ノート」を利用してこのトピックの改良について話しあうことができます。