CARMA C++
|
Class to encompass a CAN over IP session. More...
#include <carma/canbus/Session.h>
Classes | |
struct | FilterType |
CAN Message filter type. More... | |
Public Member Functions | |
void | addFilter (FilterType filter) |
Add a filter to this Session. More... | |
void | clearFilters () |
Clear existing filters. More... | |
int | getReadSock () |
Get read sock. More... | |
int | getWriteSock () |
Get write sock. More... | |
bool | matchesFilter (const carma::canbus::Message &msg) |
Check to see if a CAN Message Id matches a filter for this Session. More... | |
Session (int readSock, int writeSock) | |
Constructor. More... | |
~Session () | |
Destructor. More... | |
Class to encompass a CAN over IP session.
Not intended or safe for use by anybody except the canOverIpServer!
carma::canbus::canoverip::Session::Session | ( | int | readSock, |
int | writeSock | ||
) |
Constructor.
readSock | Socket descriptor for this Connection/Session |
writeSock | Socket descriptor for this Connection/Session |
carma::canbus::canoverip::Session::~Session | ( | ) |
Destructor.
void carma::canbus::canoverip::Session::addFilter | ( | FilterType | filter | ) |
Add a filter to this Session.
void carma::canbus::canoverip::Session::clearFilters | ( | ) |
Clear existing filters.
int carma::canbus::canoverip::Session::getReadSock | ( | ) |
int carma::canbus::canoverip::Session::getWriteSock | ( | ) |
bool carma::canbus::canoverip::Session::matchesFilter | ( | const carma::canbus::Message & | msg | ) |