{
    "mode": "man",
    "parameter": "rpcbind",
    "section": "3t",
    "url": "https://www.chedong.com/phpMan.php/man/rpcbind/3t/json",
    "generated": "2026-06-14T13:01:42Z",
    "synopsis": "#include <rpc/rpc.h>\nrpcblist *\nrpcbgetmaps(const struct netconfig *netconf, const char *host);\nboolt\nrpcbgetaddr(const rpcprogt prognum, const rpcverst versnum, const struct netconfig *netconf,\nstruct netbuf *svcaddr, const char *host);\nboolt\nrpcbgettime(const char *host, timet * timep);\nenum clntstat\nrpcbrmtcall(const struct netconfig *netconf, const char *host,\nconst rpcprogt prognum, const rpcverst versnum,\nconst rpcproct procnum, const xdrproct inproc, const caddrt in, const xdrproct outproc,\nconst caddrt out, const struct timeval tout, const struct netbuf *svcaddr);\nboolt\nrpcbset(const rpcprogt prognum, const rpcverst versnum, const struct netconfig *netconf,\nconst struct netbuf *svcaddr);\nboolt\nrpcbunset(const rpcprogt prognum, const rpcverst versnum, const struct netconfig *netconf);",
    "sections": {
        "NAME": {
            "content": "rpcbgetmaps, rpcbgetaddr, rpcbgettime, rpcbrmtcall, rpcbset, rpcbunset -- library rou-\ntines for RPC bind service\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "#include <rpc/rpc.h>\n\nrpcblist *\nrpcbgetmaps(const struct netconfig *netconf, const char *host);\n\nboolt\nrpcbgetaddr(const rpcprogt prognum, const rpcverst versnum, const struct netconfig *netconf,\nstruct netbuf *svcaddr, const char *host);\n\nboolt\nrpcbgettime(const char *host, timet * timep);\n\nenum clntstat\nrpcbrmtcall(const struct netconfig *netconf, const char *host,\nconst rpcprogt prognum, const rpcverst versnum,\nconst rpcproct procnum, const xdrproct inproc, const caddrt in, const xdrproct outproc,\nconst caddrt out, const struct timeval tout, const struct netbuf *svcaddr);\n\nboolt\nrpcbset(const rpcprogt prognum, const rpcverst versnum, const struct netconfig *netconf,\nconst struct netbuf *svcaddr);\n\nboolt\nrpcbunset(const rpcprogt prognum, const rpcverst versnum, const struct netconfig *netconf);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "These routines allow client C programs to make procedure calls to the RPC binder service.  (see\nrpcbind(8)) maintains a list of mappings between programs and their universal addresses.\n",
            "subsections": []
        },
        "Routines": {
            "content": "rpcbgetmaps()\nAn interface to the rpcbind service, which returns a list of the current RPC program-to-\naddress mappings on host.  It uses the transport specified through netconf to contact\nthe remote rpcbind service on host.  This routine will return NULL, if the remote\nrpcbind could not be contacted.\n\nrpcbgetaddr()\nAn interface to the rpcbind service, which finds the address of the service on host that\nis registered with program number prognum, version versnum, and speaks the transport\nprotocol associated with netconf.  The address found is returned in svcaddr.  The\nsvcaddr argument should be preallocated.  This routine returns TRUE if it succeeds.  A\nreturn value of FALSE means that the mapping does not exist or that the RPC system\nfailed to contact the remote rpcbind service.  In the latter case, the global variable\nrpccreateerr (see rpcclntcreate(3)) contains the RPC status.\n\nrpcbgettime()\nThis routine returns the time on host in timep.  If host is NULL, rpcbgettime() returns\nthe time on its own machine.  This routine returns TRUE if it succeeds, FALSE if it\nfails.  The rpcbgettime() function can be used to synchronize the time between the\nclient and the remote server.\n\nrpcbrmtcall()\nAn interface to the rpcbind service, which instructs rpcbind on host to make an RPC call\non your behalf to a procedure on that host.  The netconfig() structure should correspond\nto a connectionless transport.  The svcaddr argument will be modified to the server's\naddress if the procedure succeeds (see rpccall() and clntcall() in rpcclntcalls(3)\nfor the definitions of other arguments).\n\nThis procedure should normally be used for a \"ping\" and nothing else.  This routine al-\nlows programs to do lookup and call, all in one step.\n\nNote: Even if the server is not running rpcbrmtcall() does not return any error mes-\nsages to the caller.  In such a case, the caller times out.\n\nNote: rpcbrmtcall() is only available for connectionless transports.\n\nrpcbset()\nAn interface to the rpcbind service, which establishes a mapping between the triple\n[prognum, versnum, netconf->ncnetid] and svcaddr on the machine's rpcbind service.  The\nvalue of ncnetid must correspond to a network identifier that is defined by the netcon-\nfig database.  This routine returns TRUE if it succeeds, FALSE otherwise.  (See also\nsvcreg() in rpcsvccalls(3).)  If there already exists such an entry with rpcbind,\nrpcbset() will fail.\n\nrpcbunset()\nAn interface to the rpcbind service, which destroys the mapping between the triple\n[prognum, versnum, netconf->ncnetid] and the address on the machine's rpcbind service.\nIf netconf is NULL, rpcbunset() destroys all mapping between the triple [prognum,\nversnum, all-transports] and the addresses on the machine's rpcbind service.  This rou-\ntine returns TRUE if it succeeds, FALSE otherwise.  Only the owner of the service or the\nsuper-user can destroy the mapping.  (See also svcunreg() in rpcsvccalls(3).)\n",
            "subsections": []
        },
        "AVAILABILITY": {
            "content": "These functions are part of libtirpc.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "rpcclntcalls(3), rpcsvccalls(3), rpcbind(8), rpcinfo(8)\n\nBSD                                        May 7, 1993                                        BSD",
            "subsections": []
        }
    },
    "summary": "rpcbgetmaps, rpcbgetaddr, rpcbgettime, rpcbrmtcall, rpcbset, rpcbunset -- library rou- tines for RPC bind service",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "rpcclntcalls",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/rpcclntcalls/3/json"
        },
        {
            "name": "rpcsvccalls",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/rpcsvccalls/3/json"
        },
        {
            "name": "rpcinfo",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/rpcinfo/8/json"
        }
    ]
}