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:
parent
98896798de
commit
333e69585b
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue