extern int h_errno;
struct hostent *gethostbyaddr(const char *addr, size_t len, int type);
struct hostent *gethostbyname(const char *name);
struct hostent *gethostent(void);
void sethostent(int stayopen);
Official name of the host (PC).
A null-terminated array of alternate names.
The type of address being returned.
The length, in bytes, of each address.
A null-terminated list of addresses for the host. Addresses are returned in network byte order.
Points to the binary-format (that is, not null-terminated) address in network byte order. The data type of the address depends on the address family. For an address of type AF_INET, this is an in_addr structure.
Is the length of the address in bytes.
Is the type (address family) of the address.
Is the host name or alias for the host whose address is to be returned.
When non-zero, the connection to the database is not closed after each call to
No such host is known.
No data record found for the specified address.
An unexpected server failure occurred; no recovery is possible.
A temporary and possibly transient error occurred, such as the failure of a server to respond.
For some failures, they return a null pointer and set errno to one of the following values:
A signal interrupted the call.
The network subsystem was down.
addr is an invalid pointer.
The pointer that is returned points to a structure that is allocated by the NuTCRACKER Platform. The application must never attempt to modify this structure or to free any of its components. Furthermore, only one copy of this structure is allocated per thread; therefore, the application should copy any information it needs before issuing any other socket calls.
UNIX 98, with exceptions.
On 2012/8.1/2012R2/10/2016/2019, the hosts file is in the drivers/etc
directory under the 2012/8.1/2012R2/10/2016/2019 system directory.
Windows networking does not assign individual network names to physical
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
_NutQueryWinNetFileDir(), endnetent(), endprotoent(), endservent(), getnetbyaddr(), getnetbyname(), getnetent(), getprotobyname(), getprotobynumber(), getprotoent(), getservbyname(), getservbyport(), getservent(), htonl(), inet_addr(), inet_ntoa(), ntohl(), setnetent(), setprotoent(), setservent()
PTC MKS Toolkit 10.3 Documentation Build 39.