TAPI for name/address resolution remote calls

Overview

// 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

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

  • string hostname

  • ipv4 address in standart dot notation

  • ipv6 address

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