10 #include <ucp/api/ucp.h>
12 #include <ucxx/component.h>
13 #include <ucxx/endpoint_builder.h>
14 #include <ucxx/listener_builder.h>
15 #include <ucxx/worker.h>
28 ucp_listener_h _handle{
nullptr};
53 Listener(std::shared_ptr<Worker> worker,
56 ucp_listener_conn_callback_t callback,
69 friend class detail::ConstructorFactory;
A UCXX component class to prevent early destruction of parent object.
Definition: component.h:21
Builder class for constructing std::shared_ptr<ucxx::Endpoint> objects.
Definition: endpoint_builder.h:28
Component encapsulating a UCP listener.
Definition: listener.h:26
EndpointBuilder endpointBuilder(ucp_conn_request_h connRequest)
Create a builder for an endpoint from a connection request.
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.