diff options
Diffstat (limited to 'src/common/interface')
-rw-r--r-- | src/common/interface/ClientInterface.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/interface/ClientInterface.h b/src/common/interface/ClientInterface.h index 9ff19609..033021b1 100644 --- a/src/common/interface/ClientInterface.h +++ b/src/common/interface/ClientInterface.h @@ -38,6 +38,13 @@ public: virtual void response(int32_t id, bool success, string msg) = 0; + virtual void enable() = 0; + + /** Signifies the client does not wish to receive any messages until + * enable is called. Useful for performance and avoiding feedback. + */ + virtual void disable() = 0; + /** Bundles are a group of messages that are guaranteed to be in an * atomic unit with guaranteed order (eg a packet). For datagram * protocols (like UDP) there is likely an upper limit on bundle size. |