diff options
Diffstat (limited to 'src/HciSocket.h')
-rw-r--r-- | src/HciSocket.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/HciSocket.h b/src/HciSocket.h index 20dbe4e..b9eebb9 100644 --- a/src/HciSocket.h +++ b/src/HciSocket.h @@ -80,12 +80,18 @@ public: private: + // Wait for data to arrive, or for a shutdown event + // + // Returns true if data is available, false if we are shutting down + bool waitForDataOrShutdown() const; + // Utilitarian function for logging errors for the given operation void logErrno(const char *pOperation) const; int fdSocket; const size_t kResponseMaxSize = 64 * 1024; + const int kDataWaitTimeMS = 10; }; }; // namespace ggk
\ No newline at end of file |