Reference TAddressName
Declared in Codebot.Networking.pas on line 29
TAddressName resolves and converts a host name to an internet address
TAddressName = record
public
{ Create an address name given a host to be resolved }
class function Create(const Host: string): TAddressName; static; overload;
{ Create an address name given a 32 bit encoded address }
class function Create(Address: LongWord): TAddressName; static; overload;
{ Create an address name given a 4 byte address }
class function Create(A, B, C, D: Byte): TAddressName; static; overload;
{ Convert an address name to a string }
class operator Implicit(const Value: TAddressName): string;
{ Convert a string to an address name }
class operator Implicit(const Value: string): TAddressName;
{ Attempt to resolve a name into an address }
function Resolve: Boolean;
{ The address resolved from the host }
property Address: LongWord read FAddress;
{ The host name }
property Host: string read FHost;
{ The address in string form }
property Location: string read FLocation;
{ Resolved is true if a host name could be resolved }
property Resolved: Boolean read FResolved;
end;