From ac4ce95f8477fc5cc55bcb50d57a2d80ccebeca6 Mon Sep 17 00:00:00 2001 From: CreeperMario Date: Sun, 20 Aug 2017 17:51:45 +0930 Subject: [PATCH] udplogserver: Flush output buffer when sent a message * Because we are no longer adding a new line, which automatically flushes the buffer. --- tools/udplogserver/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/udplogserver/main.cpp b/tools/udplogserver/main.cpp index 0368950..fdec456 100644 --- a/tools/udplogserver/main.cpp +++ b/tools/udplogserver/main.cpp @@ -91,6 +91,7 @@ int main(int argc, char **argv) if (recvd > 0) { buffer[recvd] = 0; std::cout << buffer; + std::cout.flush(); } } }