(doc) Add more doc to SocketServer

This commit is contained in:
Benjamin Sergeant
2019-04-17 20:31:34 -07:00
parent d486c72e02
commit 52f460f66d
9 changed files with 34 additions and 20 deletions

View File

@ -88,9 +88,9 @@ namespace ix
}
conn.setEventCallback(
[&conn, &channel, &jsonWriter,
[&conn, &channel, &jsonWriter,
verbose, &receivedCount, &sentCount,
&condition, &conditionVariableMutex,
&condition, &conditionVariableMutex,
&progressCondition, &queue]
(ix::CobraConnectionEventType eventType,
const std::string& errMsg,
@ -114,7 +114,7 @@ namespace ix
{
std::cerr << "Subscriber authenticated" << std::endl;
conn.subscribe(channel,
[&jsonWriter, verbose,
[&jsonWriter, verbose,
&sentCount, &receivedCount,
&condition, &conditionVariableMutex,
&progressCondition, &queue]
@ -132,7 +132,7 @@ namespace ix
receivedCount != 0 &&
(sentCount * scaleFactor < receivedCount))
{
std::cerr << "message dropped: sending is backlogged !"
std::cerr << "message dropped: sending is backlogged !"
<< std::endl;
condition.notify_one();