322 |
continue; //Ignore CR |
continue; //Ignore CR |
323 |
if (c == '\n') { |
if (c == '\n') { |
324 |
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_misc, "Received \'" + bufferedCommands[socket] + "\' on socket", socket)); |
LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_misc, "Received \'" + bufferedCommands[socket] + "\' on socket", socket)); |
325 |
bufferedCommands[socket] += "\n"; |
bufferedCommands[socket] += "\r\n"; |
326 |
return true; //Complete command was read |
return true; //Complete command was read |
327 |
} |
} |
328 |
bufferedCommands[socket] += c; |
bufferedCommands[socket] += c; |
1582 |
LSCPResultSet result; |
LSCPResultSet result; |
1583 |
result.Add("DESCRIPTION", "LinuxSampler - modular, streaming capable sampler"); |
result.Add("DESCRIPTION", "LinuxSampler - modular, streaming capable sampler"); |
1584 |
result.Add("VERSION", VERSION); |
result.Add("VERSION", VERSION); |
1585 |
result.Add("PROTOCOL_VERSION", "1.0"); |
result.Add("PROTOCOL_VERSION", "1.1"); |
1586 |
return result.Produce(); |
return result.Produce(); |
1587 |
} |
} |
1588 |
|
|