Skip to content

Commit

Permalink
server: added back dumpOSC
Browse files Browse the repository at this point in the history
thanks to Open Music Kontrollers for spotting what was missing.
  • Loading branch information
Julian Rohrhuber committed Nov 25, 2013
1 parent eab3bfa commit ee78d38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/SC_OscUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static bool dumpOSCbndl(int indent, int size, char *inData)
if (!strcmp(data, "#bundle"))
contentPrinted = dumpOSCbndl(indent+1, msgSize, data);
else
contentPrinted = dumpOSCmsg(msgSize, data);
contentPrinted = dumpOSCmsg(msgSize, data, true);
data += msgSize;
if ( (data < dataEnd) && contentPrinted) scprintf(",");
}
Expand All @@ -182,7 +182,7 @@ static void dumpOSC(int mode, int size, char* inData)
if (strcmp(inData, "#bundle") == 0)
contentPrinted = dumpOSCbndl(indent, size, inData);
else
contentPrinted = dumpOSCmsg(size, inData);
contentPrinted = dumpOSCmsg(size, inData, true);

if (contentPrinted)
scprintf("\n");
Expand Down
4 changes: 4 additions & 0 deletions server/scsynth/SC_ComPort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ class SC_UdpInPort
return;
}

if (mWorld->mDumpOSC) dumpOSC(mWorld->mDumpOSC, bytes_transferred, recvBuffer.data());

OSC_Packet * packet = (OSC_Packet*)malloc(sizeof(OSC_Packet));

packet->mReplyAddr.mProtocol = kUDP;
Expand Down Expand Up @@ -368,6 +370,8 @@ class SC_TcpConnection:

assert(bytes_transferred == OSCMsgLength);

if (mWorld->mDumpOSC) dumpOSC(mWorld->mDumpOSC, bytes_transferred, data);

OSC_Packet * packet = (OSC_Packet*)malloc(sizeof(OSC_Packet));

packet->mReplyAddr.mProtocol = kTCP;
Expand Down

0 comments on commit ee78d38

Please sign in to comment.