---
name: "rpc_max_payload"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/rpc_max_payload"
---

# rpc\_max\_payload(9)

Get maximum payload size for a transport, in bytes

## NAME

rpc\_max\_payload - Get maximum payload size for a transport, in bytes

## SYNOPSIS

**size\_t rpc\_max\_payload(struct rpc\_clnt \*** *clnt***);**

## ARGUMENTS

*clnt*

RPC client to query

## DESCRIPTION

For stream transports, this is one RPC record fragment (see RFC 1831), as we don't support multi-record requests yet. For datagram transports, this is the size of an IP packet minus the IP, UDP, and RPC header sizes.

## COPYRIGHT
