10 #include <ucp/api/ucp.h>
12 #include <ucxx/component.h>
13 #include <ucxx/worker.h>
25 ucp_listener_h _handle{
nullptr};
43 Listener(std::shared_ptr<Worker> worker,
45 ucp_listener_conn_callback_t callback,
96 std::shared_ptr<Worker> worker,
98 ucp_listener_conn_callback_t callback,
123 ucp_conn_request_h connRequest,
bool endpointErrorHandling =
true);
A UCXX component class to prevent early destruction of parent object.
Definition: component.h:17
Component encapsulating a UCP listener.
Definition: listener.h:23
friend std::shared_ptr< Listener > createListener(std::shared_ptr< Worker > worker, uint16_t port, ucp_listener_conn_callback_t callback, void *callbackArgs)
Constructor of shared_ptr<ucxx::Listener>.
std::string getIp()
Get the IP address to which the listener is bound to.
ucp_listener_h getHandle()
Get the underlying ucp_listener_h handle.
uint16_t getPort()
Get the port to which the listener is bound to.
std::shared_ptr< Endpoint > createEndpointFromConnRequest(ucp_conn_request_h connRequest, bool endpointErrorHandling=true)
Constructor for shared_ptr<ucxx::Endpoint>.