diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2011-02-09 15:02:13 +0100 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2011-02-09 15:02:13 +0100 |
commit | 40f84d7fc137438fad7b87fd706bde6adb2e3b1a (patch) | |
tree | 6b9fac61f92de39e53b312e82036467c5fb83758 /test/ClientTest.h | |
parent | 75c75dcf9736efd7ef7094974fb4c5a557dff1d2 (diff) |
TransportAgent: simplified timeout API
Instead of allowing users of the API to register a callback
which can choose between aborting and time out, only accept
the timeout duration and always treat that as a timeout.
The advanced functionality wasn't used and the simplification
makes implementing the API easier.
Diffstat (limited to 'test/ClientTest.h')
-rw-r--r-- | test/ClientTest.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/ClientTest.h b/test/ClientTest.h index fa40b10f..99fa8653 100644 --- a/test/ClientTest.h +++ b/test/ClientTest.h @@ -858,8 +858,7 @@ public: m_wrappedAgent.reset(); } virtual Status wait(bool noReply = false) { return m_status; } - virtual void setCallback (TransportCallback cb, void *udata, int interval) - { return m_wrappedAgent->setCallback(cb, udata, interval);} + virtual void setTimeout(int seconds) { m_wrappedAgent->setTimeout(seconds); } }; /** assert equality, include string in message if unequal */ |