Module Rpc
module Rpc: sig
.. end
Common types and exceptions
type
protocol =
type
mode =
type
server_error =
| |
Unavailable_program |
| |
Unavailable_version of (Netnumber.uint4 * Netnumber.uint4) |
| |
Unavailable_procedure |
| |
Garbage |
| |
System_err |
| |
Rpc_mismatch of (Netnumber.uint4 * Netnumber.uint4) |
| |
Auth_bad_cred |
| |
Auth_rejected_cred |
| |
Auth_bad_verf |
| |
Auth_rejected_verf |
| |
Auth_too_weak |
| |
Auth_invalid_resp |
| |
Auth_failed |
| |
RPCSEC_GSS_credproblem |
| |
RPCSEC_GSS_ctxproblem |
val string_of_server_error : server_error -> string
returns a string for debug purposes
exception Rpc_server of server_error
an exception generated by the RPC server
exception Rpc_cannot_unpack of string
RPC protocol error (bad data)
val create_inet_uaddr : Unix.inet_addr -> int -> string
Create an universal address from an internet addr and a port
val parse_inet_uaddr : string -> Unix.inet_addr * int
Parses an universal address and returns internet addr and port.
Failure if not parsable.
val netid_of_inet_addr : Unix.inet_addr -> protocol -> string
Get the netid for an Internet address
val sockaddr_of_uaddr : string -> string -> (Unix.sockaddr * protocol) option
sockaddr_of_uaddr netid uaddr
. Returns None for unknown netid