mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-28 16:36:17 +02:00
socket
git-svn-id: svn://elaine/murooma/trunk@253 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
8039c3d023
commit
25f7f3060d
19 changed files with 26 additions and 1660 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue