lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Pds::Eb::EbLfClient Class Reference

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.
 

Detailed Description

Creates and tears down client-side EbLfCltLink connections; all its links share one pending word and one posting word.

Constructor & Destructor Documentation

◆ EbLfClient() [1/2]

Pds::Eb::EbLfClient::EbLfClient ( const unsigned &  verbose)

Construct with default libfabric hints (Info) and zeroed pending and posting words; verbose is kept by reference.

◆ EbLfClient() [2/2]

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.

Member Function Documentation

◆ connect()

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).

◆ disconnect()

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.

◆ pending()

uint64_t Pds::Eb::EbLfClient::pending ( ) const
inline

Return the shared pending word, which EbLfLink::poll(data, msTmo) increments while it waits.

◆ posting()

uint64_t Pds::Eb::EbLfClient::posting ( ) const
inline

Return the shared posting word, a bit list of the peer IDs whose links are currently posting.


The documentation for this class was generated from the following file: