14 #include <netinet/in.h>
16 #include <sys/socket.h>
46 Session(
int readSock,
int writeSock);
59 unsigned short busFilter;
95 struct sockaddr_in sa_in;
101 SockAddressUnion ra_;
102 SockAddressUnion wa_;
103 pthread_mutex_t mutex_;
104 std::vector<FilterType> filters_;
105 log4cpp::Category &log_;
bool matchesFilter(const carma::canbus::Message &msg)
Check to see if a CAN Message Id matches a filter for this Session.
void clearFilters()
Clear existing filters.
void addFilter(FilterType filter)
Add a filter to this Session.
Class to encapsulate a CAN message.
Class to encompass a CAN over IP session.
int getReadSock()
Get read sock.
Session(int readSock, int writeSock)
Constructor.
int getWriteSock()
Get write sock.