#include <OTMessageBuffer.hpp>
Definition at line 144 of file OTMessageBuffer.hpp.
| opentxs::OTMessageBuffer::OTMessageBuffer |
( |
| ) |
|
|
inline |
| opentxs::OTMessageBuffer::~OTMessageBuffer |
( |
| ) |
|
| void opentxs::OTMessageBuffer::Clear |
( |
| ) |
|
Definition at line 256 of file OTMessageBuffer.cpp.
258 while (!messages_.empty()) {
259 OTMessage* pMsg = messages_.front();
260 messages_.pop_front();
262 if (
nullptr != pMsg)
delete pMsg;
Definition at line 174 of file OTMessageBuffer.cpp.
178 OTMessage* pReturnValue =
nullptr;
182 while (!messages_.empty()) {
184 OTMessage* pMsg = messages_.front();
186 messages_.pop_front();
188 if (
nullptr == pMsg) {
189 otErr <<
"OTMessageBuffer::Pop: Error: List of incoming server "
191 "is NOT empty, yet when Pop was called, pMsg was nullptr! "
199 if (!strServerID.Compare(pMsg->m_strServerID) ||
200 !strNymID.Compare(pMsg->m_strNymID)) {
201 temp_list.push_front(
210 const int64_t lMsgRequest = atol(pMsg->m_strRequestNum.Get());
214 if (lMsgRequest == lRequestNum) {
221 otOut <<
"OTMessageBuffer::Pop: Warning: While looking for server ("
222 << strServerID <<
") reply to request number " << lRequestNum
223 <<
" for Nym (" << strNymID
225 "discovered (and discarded) an old server reply for "
226 "request number " << lMsgRequest <<
" "
228 << pMsg->m_strCommand
229 <<
" command. The client should have flushed it by now "
230 "anyway, so it was probably slow on the network "
231 "and then assumed to have been dropped. It's okay--the "
232 "protocol is designed to handle these occurrences.)\n";
242 while (!temp_list.empty()) {
243 OTMessage* pMsg = temp_list.front();
244 temp_list.pop_front();
245 messages_.push_front(pMsg);
OTLOG_IMPORT OTLogStream otOut
OTLOG_IMPORT OTLogStream otErr
| void opentxs::OTMessageBuffer::Push |
( |
OTMessage & |
message | ) |
|
The documentation for this class was generated from the following files: