.\" Extracted by src2man from /build/rpma-11eW7Q/rpma-1.3.0/src/include/librpma.h .\" Text automatically generated by txt2man .TH rpma_ep_listen 3 "29 May 2023" "RPMA" "RPMA Programmer's Manual" .SH NAME \fBrpma_ep_listen \fP- create a listening endpoint .SH SYNOPSIS .nf .fam C #include struct rpma_peer; struct rpma_ep; int \fBrpma_ep_listen\fP(struct rpma_peer *peer, const char *addr, const char *port, struct rpma_ep **ep_ptr); .fam T .fi .fam T .fi .SH DESCRIPTION \fBrpma_ep_listen\fP() creates an endpoint and initiates listening for incoming connections using reliable, connection-oriented and message-based (RDMA_PS_TCP) QP communication. .SH RETURN VALUE The \fBrpma_ep_listen\fP() function returns 0 on success or a negative error code on failure. \fBrpma_ep_listen\fP() does not set *ep_ptr value on failure. .SH ERRORS \fBrpma_ep_listen\fP() can fail with the following errors: .IP \(bu 3 RPMA_E_INVAL - peer, addr, port or ep_ptr is NULL .IP \(bu 3 RPMA_E_PROVIDER - \fBrdma_create_event_channel\fP(3), \fBrdma_create_id\fP(3), \fBrdma_getaddrinfo\fP(3), \fBrdma_listen\fP(3) failed .IP \(bu 3 RPMA_E_NOMEM - out of memory .SH SEE ALSO \fBrpma_ep_get_fd\fP(3), \fBrpma_ep_next_conn_req\fP(3), \fBrpma_ep_shutdown\fP(3), \fBrpma_peer_new\fP(3), \fBlibrpma\fP(7) and https://pmem.io/rpma/