|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
Creates and tears down client-side EbLfCltLink connections; all its links share one pending word and one posting word. More...
#include <EbLfClient.hh>
Public Member Functions | |
| EbLfClient (const unsigned &verbose) | |
| Construct with default libfabric hints (Info) and zeroed pending and posting words; verbose is kept by reference. | |
| EbLfClient (const unsigned &verbose, const std::map< std::string, std::string > &kwargs) | |
| Construct with libfabric hints built from kwargs (ep_fabric, ep_domain, ep_provider are used by Info) and zeroed pending and posting words. | |
| int | connect (EbLfCltLink **link, const char *peer, const char *port, unsigned tmo) |
| Create a Fabric, a transmit completion queue and an Endpoint for peer:port and try to connect, retrying refused connections every 1 ms until tmo milliseconds have passed (tmo 0 means no limit). | |
| int | disconnect (EbLfCltLink *) |
| Delete link and its endpoint, the endpoint's transmit completion queue and its fabric; does nothing for a null link. | |
| uint64_t | pending () const |
| Return the shared pending word, which EbLfLink::poll(data, msTmo) increments while it waits. | |
| uint64_t | posting () const |
| Return the shared posting word, a bit list of the peer IDs whose links are currently posting. | |
Creates and tears down client-side EbLfCltLink connections; all its links share one pending word and one posting word.
| Pds::Eb::EbLfClient::EbLfClient | ( | const unsigned & | verbose | ) |
Construct with default libfabric hints (Info) and zeroed pending and posting words; verbose is kept by reference.
| Pds::Eb::EbLfClient::EbLfClient | ( | const unsigned & | verbose, |
| const std::map< std::string, std::string > & | kwargs | ||
| ) |
Construct with libfabric hints built from kwargs (ep_fabric, ep_domain, ep_provider are used by Info) and zeroed pending and posting words.
| int Pds::Eb::EbLfClient::connect | ( | EbLfCltLink ** | link, |
| const char * | peer, | ||
| const char * | port, | ||
| unsigned | tmo | ||
| ) |
Create a Fabric, a transmit completion queue and an Endpoint for peer:port and try to connect, retrying refused connections every 1 ms until tmo milliseconds have passed (tmo 0 means no limit).
On success store a new EbLfCltLink in link and return 0; otherwise return a negative error (-FI_EAGAIN on timeout).
| int Pds::Eb::EbLfClient::disconnect | ( | EbLfCltLink * | ) |
Delete link and its endpoint, the endpoint's transmit completion queue and its fabric; does nothing for a null link.
Always returns FI_SUCCESS.
|
inline |
Return the shared pending word, which EbLfLink::poll(data, msTmo) increments while it waits.
|
inline |
Return the shared posting word, a bit list of the peer IDs whose links are currently posting.