|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
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. | |
Owns a struct fi_msg built from a LocalIOVec, for fi_sendmsg() and fi_recvmsg().
| Pds::Fabrics::Message::Message | ( | ) |
Construct with no IO vector; the fi_msg is allocated but its fields are not initialized.
| 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.
| Pds::Fabrics::Message::~Message | ( | ) |
Delete the owned fi_msg; the IO vector is not deleted.
| fi_addr_t Pds::Fabrics::Message::addr | ( | ) | const |
Return the fabric address stored in the message.
| void Pds::Fabrics::Message::addr | ( | fi_addr_t | addr | ) |
Set the fabric address stored in the message.
| void * Pds::Fabrics::Message::context | ( | ) | const |
Return the context pointer stored in the message.
| void Pds::Fabrics::Message::context | ( | void * | context | ) |
Set the context pointer stored in the message.
| uint64_t Pds::Fabrics::Message::data | ( | ) | const |
Return the immediate data value stored in the message.
| void Pds::Fabrics::Message::data | ( | uint64_t | data | ) |
Set the immediate data value stored in the message.
| void ** Pds::Fabrics::Message::desc | ( | ) | const |
Return the descriptor array pointer stored in the message.
| LocalIOVec * Pds::Fabrics::Message::iov | ( | ) | const |
Return the IO vector.
| 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.
| size_t Pds::Fabrics::Message::iov_count | ( | ) | const |
Return the iovec count stored in the message.
| const struct fi_msg * Pds::Fabrics::Message::msg | ( | ) | const |
Return the underlying struct fi_msg.
| const struct iovec * Pds::Fabrics::Message::msg_iov | ( | ) | const |
Return the iovec array pointer stored in the message.