Name and address resolution
Overview
Name and address resolution on a Test Agent: getaddrinfo(), gethostbyname() and the rest. More…
// global functions struct hostent* rpc_gethostbyname(rcf_rpc_server* handle, const char* name); struct hostent* rpc_gethostbyaddr(rcf_rpc_server* handle, const char* addr, int len, rpc_socket_addr_family type);
Detailed Documentation
Name and address resolution on a Test Agent: getaddrinfo(), gethostbyname() and the rest.
Global Functions
struct hostent* rpc_gethostbyname(rcf_rpc_server* handle, const char* name)
Get network host entry by given name.
Parameters:
handle |
RPC Server |
name |
given name may be
|
Returns:
Host entry on success otherwise NULL
struct hostent* rpc_gethostbyaddr(rcf_rpc_server* handle, const char* addr, int len, rpc_socket_addr_family type)
Get network host entry by given address.
Parameters:
handle |
RPC Server |
addr |
given address |
len |
length of given address |
type |
address type (IF_INET or IF_INET6) |
Returns:
Host entry on success otherwise NULL