You can select TCP transport for a given program/procedure under SUNRPC. Last time I checked, rpcgen gave you UDP transport by default, so minor editing of the generated code was necessary. Nice thing about TCP transport beyond no size limit is that the client doesn't have to wait for a return. This is called 'batched rpc'.