35 void*
run(
void* arg) {
62 int success = pthread_create(&
thread, 0,
run, (
void *)
this);
65 std::cerr <<
"Reader::start() -> error creating thread" << std::endl;
74 int success = pthread_join(
thread, &res);
76 std::cerr <<
"Reader::stop() -> failed to join thread" << std::endl;
Reader(Connect *connect, Parser *parser)
void parseMessage(std::string message)
bool sendMessage(std::string msg)
Parser The Parser lorem Ipsum
std::string receiveMessage()
Reader The Reader lorem Ipsum