.\" Extracted by src2man from /build/rpma-11eW7Q/rpma-1.3.0/src/include/librpma.h .\" Text automatically generated by txt2man .TH rpma_conn_req_new 3 "29 May 2023" "RPMA" "RPMA Programmer's Manual" .SH NAME \fBrpma_conn_req_new \fP- create a new outgoing connection request object .SH SYNOPSIS .nf .fam C #include struct rpma_peer; struct rpma_conn_cfg; struct rpma_conn_req; int \fBrpma_conn_req_new\fP(struct rpma_peer *peer, const char *addr, const char *port, const struct rpma_conn_cfg *cfg, struct rpma_conn_req **req_ptr); .fam T .fi .fam T .fi .SH DESCRIPTION \fBrpma_conn_req_new\fP() creates a new outgoing connection request object using reliable, connection-oriented and message-based (RDMA_PS_TCP) QP communication. .SH RETURN VALUE The \fBrpma_conn_req_new\fP() function returns 0 on success or a negative error code on failure. \fBrpma_conn_req_new\fP() does not set *req_ptr value on failure. If cfg is NULL, then the default values are used .IP \(bu 3 see \fBrpma_conn_cfg_new\fP(3) for more details. .SH ERRORS \fBrpma_conn_req_new\fP() can fail with the following errors: .IP \(bu 3 RPMA_E_INVAL - peer, addr, port or req_ptr is NULL .IP \(bu 3 RPMA_E_NOMEM - out of memory .IP \(bu 3 RPMA_E_PROVIDER - \fBrdma_create_id\fP(3), \fBrdma_resolve_addr\fP(3), \fBrdma_resolve_route\fP(3) or \fBibv_create_cq\fP(3) failed .SH SEE ALSO \fBrpma_conn_cfg_new\fP(3), \fBrpma_conn_req_connect\fP(3), \fBrpma_conn_req_delete\fP(3), \fBrpma_conn_req_recv\fP(3), \fBrpma_ep_next_conn_req\fP(3), \fBrpma_peer_new\fP(3), \fBlibrpma\fP(7) and https://pmem.io/rpma/