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

C++ wrappers around libfabric (OFI) objects: fabric and domain, memory regions, IO vectors, messages, event and completion queues, active and passive endpoints, and a completion poller. More...

#include <rdma/fabric.h>
#include <rdma/fi_endpoint.h>
#include <rdma/fi_errno.h>
#include <rdma/fi_rma.h>
#include <vector>
#include <string>
#include <memory>
#include <map>
#include <poll.h>
#include <sys/uio.h>
#include <sys/socket.h>
#include <netdb.h>

Classes

class  Pds::Fabrics::RemoteAddress
 Remote memory descriptor (address, length, key) for RMA calls; its fields are reinterpreted as a struct fi_rma_iov by rma_iov(). More...
 
class  Pds::Fabrics::MemoryRegion
 Owns a registered libfabric memory region (fid_mr) together with its start address and length. More...
 
class  Pds::Fabrics::LocalAddress
 Local buffer (pointer and length) with an optional MemoryRegion; its first two fields are reinterpreted as a struct iovec by iovec(). More...
 
class  Pds::Fabrics::LocalIOVec
 Growable array of struct iovec entries plus one memory-region descriptor per entry, for vectored libfabric calls. More...
 
class  Pds::Fabrics::RemoteIOVec
 Growable array of struct fi_rma_iov entries that describe remote buffers for vectored RMA calls. More...
 
class  Pds::Fabrics::RmaMessage
 Owns a struct fi_msg_rma built from a LocalIOVec and a RemoteIOVec, for fi_readmsg() and fi_writemsg(). More...
 
class  Pds::Fabrics::Message
 Owns a struct fi_msg built from a LocalIOVec, for fi_sendmsg() and fi_recvmsg(). More...
 
class  Pds::Fabrics::ErrorHandler
 Base class that keeps the last error number and a formatted error message (256-byte buffer). More...
 
class  Pds::Fabrics::Info
 Owns a libfabric fi_info hints structure, preset by initialize() for FI_EP_MSG endpoints with FI_MSG and FI_RMA capabilities, FI_SOCKADDR_IN addresses and FI_RX_CQ_DATA mode. More...
 
class  Pds::Fabrics::Fabric
 Opens a libfabric fabric and domain for a node and service, and keeps the list of memory regions registered in that domain. More...
 
class  Pds::Fabrics::EndpointBase
 Common base of active and passive endpoints: holds the Fabric, the event queue and the transmit and receive completion queues, creating any that are not supplied. More...
 
class  Pds::Fabrics::Endpoint
 Active (connected) libfabric endpoint with send, receive, RMA read and write calls and their blocking _sync variants. More...
 
class  Pds::Fabrics::PassiveEndpoint
 Listening libfabric endpoint that accepts or rejects connection requests and keeps the Endpoints it accepted. More...
 
class  Pds::Fabrics::CompletionPoller
 Waits on the wait file descriptors of several completion queues with poll(). More...
 
class  Pds::Fabrics::CompletionQueue
 Wraps a libfabric completion queue (fid_cq). More...
 
class  Pds::Fabrics::EventQueue
 Wraps a libfabric event queue (fid_eq). More...
 

Namespaces

namespace  Pds
 Outer namespace of the HSD digitizer helpers.
 
namespace  Pds::Fabrics
 Thin C++ wrappers around the libfabric API.
 

Enumerations

enum  Pds::Fabrics::State {
  Pds::Fabrics::EP_CLOSED , Pds::Fabrics::EP_INIT , Pds::Fabrics::EP_UP , Pds::Fabrics::EP_ENABLED ,
  Pds::Fabrics::EP_LISTEN , Pds::Fabrics::EP_CONNECTED
}
 Life-cycle state of an EndpointBase, as assigned by the methods in Endpoint.cc. More...
 

Detailed Description

C++ wrappers around libfabric (OFI) objects: fabric and domain, memory regions, IO vectors, messages, event and completion queues, active and passive endpoints, and a completion poller.