HostAddress Property

An Internet Address in dotted format. When set, it initiates a search for the corresponding host name.

Syntax

ANSI (Cross Platform)
char* GetHostAddress();
int SetHostAddress(const char* lpszHostAddress); Unicode (Windows) LPWSTR GetHostAddress();
INT SetHostAddress(LPCWSTR lpszHostAddress);
@property (nonatomic,readwrite,assign,getter=hostAddress,setter=setHostAddress:) NSString* hostAddress;
- (NSString*)hostAddress;
- (void)setHostAddress:(NSString*)newHostAddress;
#define PID_IPINFO_HOSTADDRESS 30

IPWORKS_EXTERNAL void* IPWORKS_CALL IPWorks_IPInfo_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_IPInfo_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

""

Remarks

This property contains the IP address (in internet dotted format aaa.bbb.ccc.ddd) of the host whose domain name is specified by HostName

If HostAddress is set to an IP address, a search is initiated for the corresponding host names(s).

The RequestComplete event is fired when the search is complete. The RequestId property identifies the pending request.

Example (Resolve an Address)


IPInfoControl.HostAddress = "10.0.1.10"
While IPInfoControl.PendingRequests > 0
    IPInfoControl.DoEvents()
End While
ResolvedName = IPInfoControl.HostName

Data Type

String

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 C++ Edition - Version 20.0 [Build 8307]