.clang-format

PIEthernet::stopThreadedListen now close device, so repeated listen() works
This commit is contained in:
2026-09-22 20:37:37 +03:00
parent 031c3b9999
commit a21a5b4fbc
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -199,7 +199,7 @@ SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceBeforeSquareBrackets: false
BitFieldColonSpacing: After
Standard: c++11
Standard: c++17
StatementAttributeLikeMacros:
- Q_EMIT
- PIMETA
+4 -3
View File
@@ -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;
}