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