.clang-format
PIEthernet::stopThreadedListen now close device, so repeated listen() works
This commit is contained in:
+1
-1
@@ -199,7 +199,7 @@ SpacesInParentheses: false
|
||||
SpacesInSquareBrackets: false
|
||||
SpaceBeforeSquareBrackets: false
|
||||
BitFieldColonSpacing: After
|
||||
Standard: c++11
|
||||
Standard: c++17
|
||||
StatementAttributeLikeMacros:
|
||||
- Q_EMIT
|
||||
- PIMETA
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user