{
    "content": [
        {
            "type": "text",
            "text": "# getrpcport (man)\n\n## NAME\n\ngetrpcport — get RPC port number\n\n## SYNOPSIS\n\nint\ngetrpcport(char *host, int prognum, int versnum, int proto);\n\n## DESCRIPTION\n\nThe getrpcport() function returns the port number for version versnum of the RPC program\nprognum running on host and using protocol proto.  It returns 0 if it cannot contact the\nportmapper, or if prognum is not registered.  If prognum is registered but not with version\nversnum, it will still return a port number (for some version of the program) indicating that\nthe program is indeed registered.  The version mismatch will be detected upon the first call to\nthe service.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **AVAILABILITY**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "getrpcport",
        "section": "",
        "mode": "man",
        "summary": "getrpcport — get RPC port number",
        "synopsis": "int\ngetrpcport(char *host, int prognum, int versnum, int proto);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "AVAILABILITY",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "getrpcport — get RPC port number\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "int\ngetrpcport(char *host, int prognum, int versnum, int proto);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The getrpcport() function returns the port number for version versnum of the RPC program\nprognum running on host and using protocol proto.  It returns 0 if it cannot contact the\nportmapper, or if prognum is not registered.  If prognum is registered but not with version\nversnum, it will still return a port number (for some version of the program) indicating that\nthe program is indeed registered.  The version mismatch will be detected upon the first call to\nthe service.\n",
                "subsections": []
            },
            "AVAILABILITY": {
                "content": "The getrpcport() function is part of libtirpc.\n\nBSD                             October 6, 1987                            BSD",
                "subsections": []
            }
        }
    }
}