mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-04 00:59:32 +02:00
basic telnet like control server
This commit is contained in:
parent
b4a23894f0
commit
046386f56d
14 changed files with 7887 additions and 119 deletions
|
@ -16,8 +16,8 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#ifndef SERVER_CONNECTION_H
|
||||
#define SERVER_CONNECTION_H
|
||||
#ifndef SERVER_SESSION_H
|
||||
#define SERVER_SESSION_H
|
||||
|
||||
#include <string>
|
||||
#include <thread>
|
||||
|
@ -84,6 +84,13 @@ public:
|
|||
bufferMs_ = bufferMs;
|
||||
}
|
||||
|
||||
std::string macAddress;
|
||||
|
||||
std::string getIP()
|
||||
{
|
||||
return socket_->remote_endpoint().address().to_string();
|
||||
}
|
||||
|
||||
protected:
|
||||
void socketRead(void* _to, size_t _bytes);
|
||||
void getNextMessage();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue