1#ifndef NET_CANSocket_h__
2#define NET_CANSocket_h__
18 void connect( std::string_view interface =
"");
25 void bind( std::string_view interface =
"");
int getInterfaceIndex(std::string_view interface) const
get CAN interface index from interface name
static std::string formatCANID(::canid_t can_id)
format canid_t into string for logs
CANSocket & operator=(CANSocket &&other) noexcept
void connect(std::string_view interface="")
std::string getInterfaceName(const sockaddr_can &addr) const
get CAN interface name from socket address structure
std::string getForeignInterface() const
std::string getLocalInterface() const
CANSocket(CANSocket &&other) noexcept
CANSocket(int type, int protocol)
allows a subclass to create new socket
void bind(std::string_view interface="")
SimpleSocket(const SimpleSocket &)=delete