|
libcosmos
Linux C++ System Programming Library
|
Wrapper for the IPMessage::RECVERR ancillary message. More...
#include <ip_aux.hxx>
Inheritance diagram for cosmos::SocketErrorMessage< FAMILY >:Public Types | |
| using | SocketError = SocketErrorT<FAMILY> |
Public Member Functions | |
| void | deserialize (const ReceiveMessageHeader::ControlMessage &msg) |
| const SocketError * | error () const |
| Returns the currently deserialized SocketError, if any, otherwise nullptr. | |
Protected Attributes | |
| std::vector< uint8_t > | m_data |
Additional Inherited Members | |
Protected Member Functions inherited from cosmos::AncillaryMessage< FamilyTraits< FAMILY >::OPT_LEVEL, FamilyTraits< FAMILY >::CtrlMsg > | |
| SendMessageHeader::ControlMessage | createMsg (FamilyTraits< FAMILY >::CtrlMsg type, const size_t data_len) const |
| void | checkMsg (const ReceiveMessageHeader::ControlMessage &msg, FamilyTraits< FAMILY >::CtrlMsg type) const |
| uint8_t * | data (SendMessageHeader::ControlMessage &msg) const |
Wrapper for the IPMessage::RECVERR ancillary message.
IP based datagram sockets can report extended error messages. To receive them the MessageFlag::ERRQUEUE needs to be passed to Socket::receiveMessage().
Definition at line 28 of file ip_aux.hxx.
| using cosmos::SocketErrorMessage< FAMILY >::SocketError = SocketErrorT<FAMILY> |
Definition at line 34 of file ip_aux.hxx.
| void cosmos::SocketErrorMessage< FAMILY >::deserialize | ( | const ReceiveMessageHeader::ControlMessage & | msg | ) |
Definition at line 15 of file ip_aux.cxx.
|
inline |
Returns the currently deserialized SocketError, if any, otherwise nullptr.
Definition at line 41 of file ip_aux.hxx.
|
protected |
Definition at line 49 of file ip_aux.hxx.