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

Server side of an EbLfLink; synchronizes with the client before and after each exchange. More...

#include <EbLfLink.hh>

Inherits Pds::Eb::EbLfLink.

Public Member Functions

 EbLfSvrLink (Fabrics::Endpoint *, const unsigned rxDepth, const unsigned &verbose, volatile uint64_t &pending, volatile uint64_t &posting)
 Construct the base EbLfLink with rxDepth receive credits.
 
int exchangeId (unsigned id, const char *peer)
 Synchronize with the client, receive its ID (stored as id()), send id, then synchronize again.
 
int prepare (size_t *size, const char *peer)
 Synchronize with the client and receive the size of the memory region it asks for, storing it in size if size is non-null.
 
int setupMr (void *region, size_t size, const char *peer)
 Register (or reuse) a memory region for size bytes at region, send its description to the client with sendMr() and finish the synchronization started by prepare().
 

Additional Inherited Members

Detailed Description

Server side of an EbLfLink; synchronizes with the client before and after each exchange.

Constructor & Destructor Documentation

◆ EbLfSvrLink()

Pds::Eb::EbLfSvrLink::EbLfSvrLink ( Fabrics::Endpoint *  ,
const unsigned  rxDepth,
const unsigned &  verbose,
volatile uint64_t &  pending,
volatile uint64_t &  posting 
)

Construct the base EbLfLink with rxDepth receive credits.

Member Function Documentation

◆ exchangeId()

int Pds::Eb::EbLfSvrLink::exchangeId ( unsigned  id,
const char *  peer 
)

Synchronize with the client, receive its ID (stored as id()), send id, then synchronize again.

Returns 0 or the first error.

◆ prepare()

int Pds::Eb::EbLfSvrLink::prepare ( size_t *  size,
const char *  peer 
)

Synchronize with the client and receive the size of the memory region it asks for, storing it in size if size is non-null.

setupMr() completes this exchange.

◆ setupMr()

int Pds::Eb::EbLfSvrLink::setupMr ( void *  region,
size_t  size,
const char *  peer 
)

Register (or reuse) a memory region for size bytes at region, send its description to the client with sendMr() and finish the synchronization started by prepare().

Returns 0 or the first error.


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