git-svn-id: svn://elaine/murooma/trunk@253 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-09-11 21:42:12 +00:00
parent 8039c3d023
commit 25f7f3060d
19 changed files with 26 additions and 1660 deletions

View file

@ -12,6 +12,7 @@
#include "common/message.h"
#include "common/headerMessage.h"
#include "common/sampleFormat.h"
#include "common/socketConnection.h"
using boost::asio::ip::tcp;
@ -20,19 +21,14 @@ using namespace std;
class StreamSession
class StreamSession : public ServerConnection
{
public:
StreamSession(socket_ptr sock);
void start();
void send(shared_ptr<BaseMessage> message);
bool isActive() const;
private:
void sender();
bool active_;
socket_ptr socket_;
protected:
virtual void worker();
thread* senderThread;
Queue<shared_ptr<BaseMessage>> messages;
};