6 #ifndef _XDRPP_RPCBIND_H_HEADER_INCLUDED_ 7 #define _XDRPP_RPCBIND_H_HEADER_INCLUDED_ 1 16 std::uint32_t prog, std::uint32_t vers,
17 int family = AF_UNSPEC);
21 std::uint32_t prog, std::uint32_t vers);
29 std::string
make_uaddr(
const sockaddr *sa, socklen_t salen);
34 #endif // !_XDRPP_RPCBIND_H_HEADER_INCLUDED_ Most of the xdrpp library is encapsulated in the xdr namespace.
int parse_uaddr_port(const string &uaddr)
Extract the port number from an RFC1833 / RFC5665 universal network address (uaddr).
string make_uaddr(const sockaddr *sa, socklen_t salen)
Create a uaddr for a local address or file descriptor.
void rpcbind_register(const sockaddr *sa, socklen_t salen, std::uint32_t prog, std::uint32_t vers)
Register a service listening on sa with rpcbind.
Simplified support for creating sockets.
unique_sock tcp_connect_rpc(const char *host, std::uint32_t prog, std::uint32_t vers, int family)
Create a TCP connection to an RPC server on host, first querying rpcbind on host to determine the por...