From 333e69585b2f89705fd68b1c2bfeb7981a383def Mon Sep 17 00:00:00 2001 From: Wei Chen Date: Wed, 5 Jun 2019 15:29:31 -0700 Subject: [PATCH] Loc Ipc: add routine to notify sender that receiver has restarted When qrtr socket receiver has restarted, need a way to inform sender so sender can restart the service discovery process Change-Id: Id665da649e0962691277124b42f1ee9cc6160fa8 CRs-fixed: 2445555 --- utils/LocIpc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/LocIpc.h b/utils/LocIpc.h index 42fbff31..af4c2c3a 100644 --- a/utils/LocIpc.h +++ b/utils/LocIpc.h @@ -127,6 +127,7 @@ protected: virtual bool isOperable() const = 0; virtual ssize_t send(const uint8_t data[], uint32_t length, int32_t msgId) const = 0; public: + virtual void informRecverRestarted() {} inline bool isSendable() const { return isOperable(); } inline bool sendData(const uint8_t data[], uint32_t length, int32_t msgId) const { return isSendable() && (send(data, length, msgId) > 0);