1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
---
date: 2019-01-16
footer: librdmacm
header: "Librdmacm Programmer's Manual"
layout: page
license: 'Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md'
section: 3
title: RDMA_ESTABLISH
---
# NAME
rdma_establish - Complete an active connection request.
# SYNOPSIS
```c
#include <rdma/rdma_cma.h>
int rdma_establish(struct rdma_cm_id *id);
```
# DESCRIPTION
**rdma_establish()** Acknowledge an incoming connection response event and complete the connection establishment.
Notes:
If a QP has not been created on the rdma_cm_id, this function should be called by the active side to complete the connection,
after getting connect response event.
This will trigger a connection established event on the passive side.
This function should not be used on an rdma_cm_id on which a QP has been created.
# ARGUMENTS
*id*
: RDMA identifier.
# RETURN VALUE
**rdma_establish()** returns 0 on success, or -1 on error. If an error occurs, errno will be set to indicate the failure reason.
# SEE ALSO
**rdma_connect**(3),
**rdma_disconnect**(3)
**rdma_get_cm_event**(3)
# AUTHORS
Danit Goldberg <danitg@mellanox.com>
Yossi Itigin <yosefe@mellanox.com>
|