@@ -67,9 +67,9 @@ class ReliableMessageContext
67
67
}
68
68
69
69
/* *
70
- * Check whether we have an ack to piggyback on the message we are sending.
71
- * If true, TakePendingPeerAckMessageCounter will return a valid value that
72
- * should be included as an ack in the message .
70
+ * Check whether we have a mPendingPeerAckMessageCounter. The counter is
71
+ * valid once we receive a message which requests an ack. Once
72
+ * mPendingPeerAckMessageCounter is valid, it never stops being valid .
73
73
*/
74
74
bool HasPiggybackAckPending () const ;
75
75
@@ -102,26 +102,6 @@ class ReliableMessageContext
102
102
*/
103
103
void SetAutoRequestAck (bool autoReqAck);
104
104
105
- /* *
106
- * Determine whether the ChipExchangeManager should not send an
107
- * acknowledgement.
108
- *
109
- * For internal, debug use only.
110
- */
111
- bool ShouldDropAckDebug () const ;
112
-
113
- /* *
114
- * Set whether the ChipExchangeManager should not send acknowledgements
115
- * for this context.
116
- *
117
- * For internal, debug use only.
118
- *
119
- * @param[in] inDropAckDebug A Boolean indicating whether (true) or not
120
- * (false) the acknowledgements should be not
121
- * sent for the exchange.
122
- */
123
- void SetDropAckDebug (bool inDropAckDebug);
124
-
125
105
/* *
126
106
* Determine whether there is already an acknowledgment pending to be sent to the peer on this exchange.
127
107
*
@@ -159,29 +139,25 @@ class ReliableMessageContext
159
139
// / When set, automatically request an acknowledgment whenever a message is sent via UDP.
160
140
kFlagAutoRequestAck = (1u << 2 ),
161
141
162
- // / Internal and debug only: when set, the exchange layer does not send an acknowledgment.
163
- kFlagDropAckDebug = (1u << 3 ),
164
-
165
142
// / When set, signifies there is a message which hasn't been acknowledged.
166
- kFlagMessageNotAcked = (1u << 4 ),
143
+ kFlagMessageNotAcked = (1u << 3 ),
167
144
168
145
// / When set, signifies that there is an acknowledgment pending to be sent back.
169
- kFlagAckPending = (1u << 5 ),
146
+ kFlagAckPending = (1u << 4 ),
170
147
171
- // / When set, signifies that there has once been an acknowledgment
172
- // / pending to be sent back. In that case,
173
- // / mPendingPeerAckMessageCounter is a valid message counter value for
174
- // / some message we have needed to acknowledge in the past.
175
- kFlagAckMessageCounterIsValid = (1u << 6 ),
148
+ // / When set, signifies that mPendingPeerAckMessageCounter is valid.
149
+ // / The counter is valid once we receive a message which requests an ack.
150
+ // / Once mPendingPeerAckMessageCounter is valid, it never stops being valid.
151
+ kFlagAckMessageCounterIsValid = (1u << 5 ),
176
152
177
153
// / When set, signifies that this exchange is waiting for a call to SendMessage.
178
- kFlagWillSendMessage = (1u << 7 ),
154
+ kFlagWillSendMessage = (1u << 6 ),
179
155
180
156
// / When set, we have had Close() or Abort() called on us already.
181
- kFlagClosed = (1u << 8 ),
157
+ kFlagClosed = (1u << 7 ),
182
158
183
159
// / When set, signifies that the exchange is requesting Sleepy End Device active mode.
184
- kFlagActiveMode = (1u << 9 ),
160
+ kFlagActiveMode = (1u << 8 ),
185
161
};
186
162
187
163
BitFlags<Flags> mFlags ; // Internal state flags
@@ -228,11 +204,6 @@ inline bool ReliableMessageContext::IsMessageNotAcked() const
228
204
return mFlags .Has (Flags::kFlagMessageNotAcked );
229
205
}
230
206
231
- inline bool ReliableMessageContext::ShouldDropAckDebug () const
232
- {
233
- return mFlags .Has (Flags::kFlagDropAckDebug );
234
- }
235
-
236
207
inline bool ReliableMessageContext::HasPiggybackAckPending () const
237
208
{
238
209
return mFlags .Has (Flags::kFlagAckMessageCounterIsValid );
@@ -253,11 +224,6 @@ inline void ReliableMessageContext::SetAckPending(bool inAckPending)
253
224
mFlags .Set (Flags::kFlagAckPending , inAckPending);
254
225
}
255
226
256
- inline void ReliableMessageContext::SetDropAckDebug (bool inDropAckDebug)
257
- {
258
- mFlags .Set (Flags::kFlagDropAckDebug , inDropAckDebug);
259
- }
260
-
261
227
inline void ReliableMessageContext::SetMessageNotAcked (bool messageNotAcked)
262
228
{
263
229
mFlags .Set (Flags::kFlagMessageNotAcked , messageNotAcked);
0 commit comments