Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: tools/android/forwarder2/command.h

Issue 2402793002: [Android] Add timeout to unmap reply handling. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/android/forwarder2/command.cc » ('j') | tools/android/forwarder2/socket.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/forwarder2/command.h
diff --git a/tools/android/forwarder2/command.h b/tools/android/forwarder2/command.h
index c92fa852427564d1c0b8188aa6aba27286a6e51c..453957bddd7fdcf1d14ecb51d33cc01806330376 100644
--- a/tools/android/forwarder2/command.h
+++ b/tools/android/forwarder2/command.h
@@ -36,10 +36,19 @@ bool ReadCommand(Socket* socket,
int* port_out,
command::Type* command_type_out);
+bool ReadCommandWithTimeout(Socket* socket,
+ int* port_out,
+ command::Type* command_type_out,
+ int timeout_secs);
+
// Helper function to read the command from the |socket| and return true if the
// |command| is equal to the given command parameter.
bool ReceivedCommand(command::Type command, Socket* socket);
+bool ReceivedCommandWithTimeout(command::Type command,
+ Socket* socket,
+ int timeout_secs);
+
bool SendCommand(command::Type command, int port, Socket* socket);
} // namespace forwarder
« no previous file with comments | « no previous file | tools/android/forwarder2/command.cc » ('j') | tools/android/forwarder2/socket.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698