.\" Automatically generated by Pandoc 2.5
.\"
.TH "RDMA_ESTABLISH" "3" "2019\-01\-16" "librdmacm" "Librdmacm Programmer\[cq]s Manual"
.hy
.SH NAME
.PP
rdma_establish \- Complete an active connection request.
.SH SYNOPSIS
.IP
.nf
\f[C]
#include <rdma/rdma_cma.h>

int rdma_establish(struct rdma_cm_id *id);
\f[R]
.fi
.SH DESCRIPTION
.PP
\f[B]rdma_establish()\f[R] Acknowledge an incoming connection response
event and complete the connection establishment.
.PP
Notes:
.PP
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,
.PP
after getting connect response event.
.PP
This will trigger a connection established event on the passive side.
.PP
This function should not be used on an rdma_cm_id on which a QP has been
created.
.SH ARGUMENTS
.TP
.B \f[I]id\f[R]
RDMA identifier.
.SH RETURN VALUE
.PP
\f[B]rdma_establish()\f[R] returns 0 on success, or \-1 on error.
If an error occurs, errno will be set to indicate the failure reason.
.SH SEE ALSO
.PP
\f[B]rdma_connect\f[R](3), \f[B]rdma_disconnect\f[R](3)
\f[B]rdma_get_cm_event\f[R](3)
.SH AUTHORS
.PP
Danit Goldberg <danitg@mellanox.com>
.PP
Yossi Itigin <yosefe@mellanox.com>
