You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
336 B
22 lines
336 B
#pragma once
|
|
#include <future>
|
|
#include "IRCMessageQueue.h"
|
|
|
|
class IRCReceiver
|
|
{
|
|
public:
|
|
IRCReceiver(int sock, IRCMessageQueue *q);
|
|
virtual ~IRCReceiver();
|
|
bool startWork();
|
|
void stopWork();
|
|
|
|
protected:
|
|
virtual void Entry();
|
|
|
|
private:
|
|
bool terminateThread;
|
|
int sock;
|
|
IRCMessageQueue *recvQ;
|
|
std::future<void> rec_thread;
|
|
};
|