| 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
|
|
|