libcaf
0.13.2
|
Base class for IO handles such as accept_handle
or connection_handle
.
More...
#include <handle.hpp>
Inherits comparable< Subtype >.
Public Member Functions | |
handle (const Subtype &other) | |
handle (const handle &other)=default | |
Subtype & | operator= (const handle &other) |
int64_t | id () const |
Returns the unique identifier of this handle. | |
void | set_id (int64_t value) |
Sets the unique identifier of this handle. | |
int64_t | compare (const Subtype &other) const |
bool | invalid () const |
void | set_invalid () |
Static Public Member Functions | |
static Subtype | from_int (int64_t id) |
Protected Member Functions | |
handle (int64_t handle_id) | |
Base class for IO handles such as accept_handle
or connection_handle
.