mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-28 13:58:48 +02:00
control socket on the stack
This commit is contained in:
parent
1974afc176
commit
45df7fdb42
4 changed files with 33 additions and 56 deletions
|
@ -34,10 +34,7 @@
|
|||
#include "message/message.h"
|
||||
#include "message/serverSettings.h"
|
||||
|
||||
|
||||
using asio::ip::tcp;
|
||||
typedef std::shared_ptr<tcp::socket> socket_ptr;
|
||||
|
||||
|
||||
/// Telnet like remote control
|
||||
/**
|
||||
|
@ -60,7 +57,7 @@ public:
|
|||
|
||||
private:
|
||||
void startAccept();
|
||||
void handleAccept(socket_ptr socket);
|
||||
void handleAccept(tcp::socket socket);
|
||||
void cleanup();
|
||||
|
||||
mutable std::recursive_mutex session_mutex_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue