udplogserver: Flush output buffer when sent a message

* Because we are no longer adding a new line, which automatically
flushes the buffer.
This commit is contained in:
CreeperMario 2017-08-20 17:51:45 +09:30
parent 45f3cd71ab
commit ac4ce95f84

View File

@ -91,6 +91,7 @@ int main(int argc, char **argv)
if (recvd > 0) {
buffer[recvd] = 0;
std::cout << buffer;
std::cout.flush();
}
}
}