#ifndef HEARTBEATLISTENER_H #define HEARTBEATLISTENER_H #include /*! \brief Represents a listener to heartbeats. */ class HeartBeatListener { public: /*! The number of bytes in the buffer for reading */ enum { kMsgBufSize = 65000 }; /*! \brief Starts the listener connected to the given model on the given port. \param model The model to alert when a heartbeat packet is receieved. \pre model is not NULL. \return thread id */ static pthread_t start(void *model); static void *initThread(void *); //pthread_t start(CommModel* model, int port); }; #endif