Veethree D7 SDK
Loading...
Searching...
No Matches
vsdk::comms::select_result_can Struct Reference

Detailed Description

Result to receive a message on multiple sockets at once.

Note
The result::recv_err code will always be set.
  • If result::recv_err == std::errc{}, both the CAN adapter and the CAN frame are guaranteed to be set. Otherwise, check if there is a value before accessing the adapter or the frame.
  • If the adapter == std::nullopt, no CAN frame will have been read.

#include <can_socket_interface.h>

Public Attributes

receive_result result {}
 The result of the entire operation.
std::optional< can_adapter > adapter = std::nullopt
 The CAN adapter on which a frame was received. std::nullopt if an error occurred while reading.
std::optional< can_msg_frame > frame = std::nullopt
 The CAN frame that was read. std::nullopt if an error occurred while reading.

Detailed Description

Result to receive a message on multiple sockets at once.

Note
The result::recv_err code will always be set.
  • If result::recv_err == std::errc{}, both the CAN adapter and the CAN frame are guaranteed to be set. Otherwise, check if there is a value before accessing the adapter or the frame.
  • If the adapter == std::nullopt, no CAN frame will have been read.

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