Component encapsulating a UCP listener. More...
#include <listener.h>
Public Member Functions | |
| Listener (const Listener &)=delete | |
| Listener & | operator= (Listener const &)=delete |
| Listener (Listener &&o)=delete | |
| Listener & | operator= (Listener &&o)=delete |
| EndpointBuilder | endpointBuilder (ucp_conn_request_h connRequest) |
| Create a builder for an endpoint from a connection request. | |
| 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::string | getIp () |
| Get the IP address to which the listener is bound to. | |
| Public Member Functions inherited from ucxx::Component | |
| void | setParent (std::shared_ptr< Component > parent) |
| Set the internal parent reference. | |
| std::shared_ptr< Component > | getParent () const |
| Get the internal parent reference. | |
Friends | |
| class | detail::ConstructorFactory |
Additional Inherited Members | |
| Protected Attributes inherited from ucxx::Component | |
| std::shared_ptr< Component > | _parent {nullptr} |
| A reference-counted pointer to the parent. | |
Component encapsulating a UCP listener.
The UCP layer provides a handle to access listeners in form of ucp_listener_h object, this class encapsulates that object and provides methods to simplify its handling.
|
nodiscard |
Create a builder for an endpoint from a connection request.
Calling this method only creates the builder. Finalizing it with .build() or implicit conversion creates the endpoint from this listener.
| [in] | connRequest | handle to connection request delivered by a listener callback. |
|
nodiscard |
Get the underlying ucp_listener_h handle.
Lifetime of the ucp_listener_h handle is managed by the ucxx::Listener object and its ownership is non-transferrable. Once the ucxx::Listener is destroyed the handle is not valid anymore, it is the user's responsibility to ensure the owner's lifetime while using the handle.
|
nodiscard |
Get the IP address to which the listener is bound to.
Get the IP address to which the listener is bound to.
|
nodiscard |
Get the port to which the listener is bound to.
Get the port to which the listener is bound to.