|
MXL : Media eXchange Layer
MXL
|
Wrapper around a libfabric endpoint address. More...
#include <Address.hpp>
Public Member Functions | |
| FabricAddress | decode () const |
| Decode into a strongly typed FabricAddress. | |
| FabricAddressFormat | format () const noexcept |
| Return the fabric specific libfaric address format, or FI_FORMAT_UNSPEC if empty. | |
| bool | operator== (RawFabricAddress const &other) const noexcept |
| void const * | raw () const noexcept |
| Pointer to the raw address data. | |
| void * | raw () noexcept |
| Pointer to the raw address data. | |
| RawFabricAddress () | |
| Default is an empty fabric address. | |
| std::size_t | size () const noexcept |
| Byte-length of the raw address data. | |
| std::string | toBase64 () const |
| Convert the raw fabric address into a base64 encoded string. | |
Static Public Member Functions | |
| static RawFabricAddress | fromBase64 (std::string_view data, FabricAddressFormat addressFormat) |
| Parse a fabric address from a base64 encoded string. | |
| static RawFabricAddress | fromFid (::fid_t fid, FabricInfoView info) |
| Retrieve the fabric address of an endpoint by passing its fid. | |
Private Member Functions | |
| RawFabricAddress (std::vector< std::uint8_t > addr, FabricAddressFormat addressFormat) | |
Static Private Member Functions | |
| static RawFabricAddress | retrieveFabricAddress (::fid_t fid, FabricInfoView info) |
| Retrieve the fabric address of an endpoint by using its fid. | |
Private Attributes | |
| FabricAddressFormat | _addressFormat |
| std::vector< std::uint8_t > | _inner |
Wrapper around a libfabric endpoint address.
Definition at line 19 of file Address.hpp.
| mxl::lib::fabrics::ofi::RawFabricAddress::RawFabricAddress | ( | ) |
Default is an empty fabric address.
Definition at line 17 of file Address.cpp.
|
explicitprivate |
Definition at line 22 of file Address.cpp.
|
nodiscard |
Decode into a strongly typed FabricAddress.
Definition at line 62 of file Address.cpp.
|
nodiscardnoexcept |
Return the fabric specific libfaric address format, or FI_FORMAT_UNSPEC if empty.
Definition at line 52 of file Address.cpp.
|
staticnodiscard |
Parse a fabric address from a base64 encoded string.
| data | Base64 encoded raw binary address |
| addressFormat | A libfabric address format like FI_SOCKADDR_IN, FI_ADDR_EFA, etc.. |
Definition at line 67 of file Address.cpp.
|
staticnodiscard |
Retrieve the fabric address of an endpoint by passing its fid.
| fid | libfabric address object |
| addressFormat | A libfabric address format like FI_SOCKADDR_IN, FI_ADDR_EFA, etc.. |
Definition at line 27 of file Address.cpp.
|
noexcept |
Definition at line 57 of file Address.cpp.
|
nodiscardnoexcept |
Pointer to the raw address data.
Definition at line 42 of file Address.cpp.
|
nodiscardnoexcept |
Pointer to the raw address data.
Definition at line 37 of file Address.cpp.
|
staticnodiscardprivate |
Retrieve the fabric address of an endpoint by using its fid.
Definition at line 77 of file Address.cpp.
|
nodiscardnoexcept |
Byte-length of the raw address data.
Definition at line 47 of file Address.cpp.
|
nodiscard |
Convert the raw fabric address into a base64 encoded string.
Definition at line 32 of file Address.cpp.
|
private |
Definition at line 91 of file Address.hpp.
|
private |
libfabric address represented as a buffer of bytes
Definition at line 90 of file Address.hpp.