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
This commit is contained in:
Wei Chen 2019-06-05 15:29:31 -07:00 committed by Gerrit - the friendly Code Review server
parent 98896798de
commit 333e69585b

View file

@ -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);