lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
EbLfServer.hh File Reference

EbLfServer, which accepts libfabric client links (EbLfSvrLink) and receives their RDMA-write notifications, and helpers that start and connect a set of such links. More...

#include "EbLfLink.hh"
#include <stdint.h>
#include <cstddef>
#include <string>
#include <vector>
#include <unordered_map>

Classes

class  Pds::Eb::EbLfServer
 Accepts client connections on a passive endpoint and receives their notifications. More...
 

Namespaces

namespace  Pds
 Outer namespace of the HSD digitizer helpers.
 
namespace  Pds::Fabrics
 Thin C++ wrappers around the libfabric API.
 
namespace  Pds::Eb
 Namespace of the psdaq event-builder (eb) code.
 

Typedefs

using Pds::Eb::LinkMap = std::unordered_map< fid_ep *, EbLfSvrLink * >
 Map from a raw libfabric endpoint to its server link.
 

Functions

int Pds::Eb::linksStart (EbLfServer &transport, const std::string &ifAddr, std::string &port, unsigned nLinks, const char *name)
 Call transport.listen(ifAddr, port, nLinks) and log an error naming name on failure; returns 0 or the error.
 
int Pds::Eb::linksConnect (EbLfServer &transport, std::vector< EbLfSvrLink * > &links, unsigned id, const char *name)
 Accept links.size() connections (14750 ms timeout each), then exchange IDs on each and store each link at the index of its remote ID.
 

Detailed Description

EbLfServer, which accepts libfabric client links (EbLfSvrLink) and receives their RDMA-write notifications, and helpers that start and connect a set of such links.