1#ifndef NET_CANSocket_h__
2#define NET_CANSocket_h__
19 void connect( std::string_view interface =
"");
26 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="")
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="")
SimpleSocket(int sockfd)
enables return of an accepted socket