mirror of
https://github.com/modelec/TCPSocketClient.git
synced 2026-01-18 16:37:35 +01:00
shouldd stop
This commit is contained in:
@@ -45,8 +45,4 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool TCPClient::shouldStop() const {
|
||||
return !running;
|
||||
}
|
||||
@@ -79,4 +79,8 @@ void TCPClient::start() {
|
||||
void TCPClient::stop() {
|
||||
running = false;
|
||||
close(clientSocket);
|
||||
}
|
||||
|
||||
bool TCPClient::shouldStop() const {
|
||||
return !running;
|
||||
}
|
||||
Reference in New Issue
Block a user