---
name: "rpma_conn_apply_remote_peer_cfg"
section: "3"
platform: "linux"
package: "librpma-dev"
version: "1.3.0-2+b3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rpma_conn_apply_remote_peer_cfg"
---

# rpma\_conn\_apply\_remote\_peer\_cfg(3)

apply remote peer cfg to the connection

## NAME

**rpma\_conn\_apply\_remote\_peer\_cfg** - apply remote peer cfg to the connection

## SYNOPSIS

```
      #include <librpma.h>
      struct rpma_conn;
      struct rpma_peer_cfg;
      int rpma_conn_apply_remote_peer_cfg(struct rpma_conn *conn,
                      const struct rpma_peer_cfg *pcfg);
```

## DESCRIPTION

**rpma\_conn\_apply\_remote\_peer\_cfg**() applies the remote peer configuration to the connection.

## RETURN VALUE

The **rpma\_conn\_apply\_remote\_peer\_cfg**() function returns 0 on success or a negative error code on failure. **rpma\_conn\_apply\_remote\_peer\_cfg**() does not set \*pcfg value on failure.

## ERRORS

**rpma\_conn\_apply\_remote\_peer\_cfg**() can fail with the following error:

- •

  RPMA\_E\_INVAL - conn or pcfg are NULL

## SEE ALSO

[**rpma\_conn\_req\_connect**(3)](/rpma_conn_req_connect/3.md), [**rpma\_peer\_cfg\_new**(3)](/rpma_peer_cfg_new/3.md), [**librpma**(7)](/librpma/7.md) and https://pmem.io/rpma/
