---
name: "rpc_peeraddr2str"
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_peeraddr2str"
---

# rpc\_peeraddr2str(9)

return remote peer address in printable format

## NAME

rpc\_peeraddr2str - return remote peer address in printable format

## SYNOPSIS

**const char \* rpc\_peeraddr2str(struct rpc\_clnt \*** *clnt***, enum rpc\_display\_format\_t** *format***);**

## ARGUMENTS

*clnt*

RPC client structure

*format*

address format

## DESCRIPTION

NB: the lifetime of the memory referenced by the returned pointer is the same as the rpc\_xprt itself. As long as the caller uses this pointer, it must hold the RCU read lock.

## COPYRIGHT
