mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-30 06:39:35 +02:00
xxx
git-svn-id: svn://elaine/murooma/trunk@121 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
6e8cac955f
commit
b0fe090d21
1 changed files with 3 additions and 2 deletions
|
@ -66,7 +66,8 @@ void control(Stream* stream)
|
|||
zmq::socket_t worker (context, ZMQ_REQ);
|
||||
srand (time(NULL));
|
||||
// We use a string identity for ease here
|
||||
s_set_id (worker);
|
||||
string macAddress = getMacAddress();
|
||||
worker.setsockopt(ZMQ_IDENTITY, macAddress.c_str(), macAddress.length());
|
||||
worker.connect("tcp://192.168.0.2:123459");
|
||||
|
||||
// Tell the router we're ready for work
|
||||
|
@ -81,7 +82,7 @@ void control(Stream* stream)
|
|||
if (splitCmd.size() > 1)
|
||||
{
|
||||
if (splitCmd[0] == "buffer")
|
||||
stream->setBufferLen(atoi(cmd.c_str()));
|
||||
stream->setBufferLen(atoi(splitCmd[1].c_str()));
|
||||
}
|
||||
s_send(worker, "ACK " + cmd);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue