diff --git a/.clang-format b/.clang-format index e4973ea7..5c14ee53 100644 --- a/.clang-format +++ b/.clang-format @@ -199,7 +199,7 @@ SpacesInParentheses: false SpacesInSquareBrackets: false SpaceBeforeSquareBrackets: false BitFieldColonSpacing: After -Standard: c++11 +Standard: c++17 StatementAttributeLikeMacros: - Q_EMIT - PIMETA diff --git a/libs/main/io_devices/piethernet.cpp b/libs/main/io_devices/piethernet.cpp index 9f535284..b9d02763 100644 --- a/libs/main/io_devices/piethernet.cpp +++ b/libs/main/io_devices/piethernet.cpp @@ -206,10 +206,10 @@ void PIEthernet::construct() { # endif # ifdef PIP_EMBEDDED setThreadedReadBufferSize(1_KiB); -# else // PIP_EMBEDDED +# else // PIP_EMBEDDED setThreadedReadBufferSize(64_KiB); # endif // PIP_EMBEDDED - // setPriority(piHigh); + // setPriority(piHigh); } @@ -392,7 +392,7 @@ void PIEthernet::applyBuffers() { void PIEthernet::applyTimeout(int fd, int opt, PISystemTime tm) { if (fd == 0) return; - // piCoutObj << "setReadIsBlocking" << yes; + // piCoutObj << "setReadIsBlocking" << yes; # ifdef WINDOWS DWORD _tm = tm.toMilliseconds(); # else @@ -597,6 +597,7 @@ void PIEthernet::stopThreadedListen() { # endif PRIVATE->event.destroy(); closeSockets(); + opened_ = server_bounded = false; }