8 #ifndef _XDRPP_EXCEPTION_H_HEADER_INCLUDED_ 9 #define _XDRPP_EXCEPTION_H_HEADER_INCLUDED_ 1 11 #include <xdrpp/rpc_msg.hh> 42 Constexpr
rpc_call_stat() : type_(ACCEPT_STAT), accept_(SUCCESS) {}
43 Constexpr rpc_call_stat(accept_stat s) : type_(ACCEPT_STAT), accept_(s) {}
44 Constexpr rpc_call_stat(auth_stat s) : type_(AUTH_STAT), auth_(s) {}
45 Constexpr rpc_call_stat(stat_type type) : type_(type), accept_(SUCCESS) {}
46 rpc_call_stat(
const rpc_msg &hdr);
47 const char *message()
const;
48 explicit operator bool()
const {
49 return type_ == ACCEPT_STAT && accept_ == SUCCESS;
75 #endif // !_XDRPP_EXCEPTION_H_HEADER_INCLUDED_ Most of the xdrpp library is encapsulated in the xdr namespace.
Generic class of XDR unmarshaling errors.
This exception represents a system error encountered while attempting to send RPC messages over a soc...
const char * rpc_errmsg(accept_stat ev)
Translate one of the conditions in RFC5531 for an unexecuted call into a string.
Structure encoding all the various reasons a server can decline to process an RPC call it received...
void check_call_hdr(const rpc_msg &hdr)
Check that an RPC header precedes a result.
This is the exception raised in an RPC client when it reaches the server and transmits a call...