Class Transport

Class Documentation

class Transport

Public Types

enum counterTypes

Values:

enumerator GARBLE_BYTES
enumerator INVALID_MSG
enumerator IGNORED_ACK
enumerator QUEUE_FULL
enumerator NUM_COUNTERS

Public Functions

void configure(const char *device, int retries)
inline bool isConfigured()
int close()
void poll()
void send(Message *m)
Message *popNext()
Message *popNext(enum MessageTypes type)
Message *waitNext(double timeout = 0.0)
Message *waitNext(enum MessageTypes type, double timeout = 0.0)
void flush(std::list<Message*> *queue = 0)
void flush(enum MessageTypes type, std::list<Message*> *queue = 0)
inline unsigned long getCounter(enum counterTypes counter)
void printCounters(std::ostream &stream = std::cout)

Public Static Functions

static Transport &instance()

Public Static Attributes

static const char *counter_names[NUM_COUNTERS]

Protected Functions

Transport()
~Transport()