Abstraction for a UCX endpoint.
More...
#include <ucxpp/endpoint.h>
|
static void | error_cb (void *ep, ucp_ep_h ep_h, ucs_status_t status) |
| Error handler for all endpoints. More...
|
|
static void | close_cb (void *request, ucs_status_t status, void *user_data) |
| Endpoint close callback. More...
|
|
|
class | worker |
|
class | local_memory_handle |
|
class | remote_memory_handle |
|
class | ep_close_awaitable |
|
Abstraction for a UCX endpoint.
◆ endpoint()
Construct a new endpoint object.
- Parameters
-
worker | UCX worker |
peer | Remote UCX address |
◆ close()
task< void > ucxpp::endpoint::close |
( |
| ) |
|
Close the endpoint. You should not use the endpoint after calling this function.
- Returns
- task<void> A coroutine that returns upon completion
◆ close_cb()
void ucxpp::endpoint::close_cb |
( |
void * |
request, |
|
|
ucs_status_t |
status, |
|
|
void * |
user_data |
|
) |
| |
|
static |
Endpoint close callback.
- Parameters
-
request | UCX request handle |
status | UCX status |
user_data | User data |
◆ error_cb()
void ucxpp::endpoint::error_cb |
( |
void * |
ep, |
|
|
ucp_ep_h |
ep_h, |
|
|
ucs_status_t |
status |
|
) |
| |
|
static |
Error handler for all endpoints.
- Parameters
-
ep | endpoint object |
ep_h | UCX endpoint handle |
status | error status |
◆ flush()
◆ get_address()
Get the endpoint's remote address.
- Returns
- remote_address The endpoint's remote address
◆ handle()
ucp_ep_h ucxpp::endpoint::handle |
( |
| ) |
const |
Get the endpoint's native UCX handle.
- Returns
- ucp_ep_h The endpoint's native UCX handle
◆ stream_recv()
Stream receive to the buffer.
- Parameters
-
buffer | The buffer to receive to |
length | The length of the buffer |
- Returns
- stream_recv_awaitable A coroutine that returns number of bytes received upon completion
◆ stream_send()
Stream send the buffer.
- Parameters
-
buffer | The buffer to send |
length | The length of the buffer |
- Returns
- stream_send_awaitable A coroutine that returns upon completion
◆ tag_send()
tag_send_awaitable ucxpp::endpoint::tag_send |
( |
void const * |
buffer, |
|
|
size_t |
length, |
|
|
ucp_tag_t |
tag |
|
) |
| const |
Tag send the buffer.
- Parameters
-
buffer | The buffer to send |
length | The length of the buffer |
tag | The tag to send with |
- Returns
- tag_send_awaitable A coroutine that returns upon completion
◆ worker_ptr()
std::shared_ptr< worker > ucxpp::endpoint::worker_ptr |
( |
| ) |
const |
Get the worker object.
- Returns
- std::shared_ptr<worker> The endpoint's worker
The documentation for this class was generated from the following files: