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

Owns a struct fi_msg built from a LocalIOVec, for fi_sendmsg() and fi_recvmsg(). More...

#include <Endpoint.hh>

Public Member Functions

 Message ()
 Construct with no IO vector; the fi_msg is allocated but its fields are not initialized.
 
 Message (LocalIOVec *iov, fi_addr_t addr, void *context, uint64_t data=0)
 Construct from an IO vector (copied into the fi_msg only if non-null), a fabric address, a context pointer and an immediate data value.
 
 ~Message ()
 Delete the owned fi_msg; the IO vector is not deleted.
 
LocalIOVec * iov () const
 Return the IO vector.
 
void iov (LocalIOVec *iov)
 Set the IO vector and copy its iovec array, descriptors and current count into the message; does nothing if iov is NULL.
 
const struct iovec * msg_iov () const
 Return the iovec array pointer stored in the message.
 
void ** desc () const
 Return the descriptor array pointer stored in the message.
 
size_t iov_count () const
 Return the iovec count stored in the message.
 
fi_addr_t addr () const
 Return the fabric address stored in the message.
 
void addr (fi_addr_t addr)
 Set the fabric address stored in the message.
 
void * context () const
 Return the context pointer stored in the message.
 
void context (void *context)
 Set the context pointer stored in the message.
 
uint64_t data () const
 Return the immediate data value stored in the message.
 
void data (uint64_t data)
 Set the immediate data value stored in the message.
 
const struct fi_msg * msg () const
 Return the underlying struct fi_msg.
 

Detailed Description

Owns a struct fi_msg built from a LocalIOVec, for fi_sendmsg() and fi_recvmsg().

Constructor & Destructor Documentation

◆ Message() [1/2]

Pds::Fabrics::Message::Message ( )

Construct with no IO vector; the fi_msg is allocated but its fields are not initialized.

◆ Message() [2/2]

Pds::Fabrics::Message::Message ( LocalIOVec *  iov,
fi_addr_t  addr,
void *  context,
uint64_t  data = 0 
)

Construct from an IO vector (copied into the fi_msg only if non-null), a fabric address, a context pointer and an immediate data value.

◆ ~Message()

Pds::Fabrics::Message::~Message ( )

Delete the owned fi_msg; the IO vector is not deleted.

Member Function Documentation

◆ addr() [1/2]

fi_addr_t Pds::Fabrics::Message::addr ( ) const

Return the fabric address stored in the message.

◆ addr() [2/2]

void Pds::Fabrics::Message::addr ( fi_addr_t  addr)

Set the fabric address stored in the message.

◆ context() [1/2]

void * Pds::Fabrics::Message::context ( ) const

Return the context pointer stored in the message.

◆ context() [2/2]

void Pds::Fabrics::Message::context ( void *  context)

Set the context pointer stored in the message.

◆ data() [1/2]

uint64_t Pds::Fabrics::Message::data ( ) const

Return the immediate data value stored in the message.

◆ data() [2/2]

void Pds::Fabrics::Message::data ( uint64_t  data)

Set the immediate data value stored in the message.

◆ desc()

void ** Pds::Fabrics::Message::desc ( ) const

Return the descriptor array pointer stored in the message.

◆ iov() [1/2]

LocalIOVec * Pds::Fabrics::Message::iov ( ) const

Return the IO vector.

◆ iov() [2/2]

void Pds::Fabrics::Message::iov ( LocalIOVec *  iov)

Set the IO vector and copy its iovec array, descriptors and current count into the message; does nothing if iov is NULL.

◆ iov_count()

size_t Pds::Fabrics::Message::iov_count ( ) const

Return the iovec count stored in the message.

◆ msg()

const struct fi_msg * Pds::Fabrics::Message::msg ( ) const

Return the underlying struct fi_msg.

◆ msg_iov()

const struct iovec * Pds::Fabrics::Message::msg_iov ( ) const

Return the iovec array pointer stored in the message.


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