"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/readmessage.cpp" between
muscle8.20.zip and muscle8.30.zip

About: MUSCLE (Multi User Server Client Linking Environment) is a messaging server and networking API. The included server program ("muscled") lets its clients message each other, and/or store information in its serverside hierarchical database.

readmessage.cpp  (muscle8.20):readmessage.cpp  (muscle8.30)
skipping to change at line 95 skipping to change at line 95
if (infBuf()) if (infBuf())
{ {
LogTime(MUSCLE_LOG_INFO, "Zlib-inflated file data from " INT32_FORMAT_S PEC " to " UINT32_FORMAT_SPEC " bytes.\n", numBytesRead, infBuf()->GetNumBytes() ); LogTime(MUSCLE_LOG_INFO, "Zlib-inflated file data from " INT32_FORMAT_S PEC " to " UINT32_FORMAT_SPEC " bytes.\n", numBytesRead, infBuf()->GetNumBytes() );
buf = infBuf; buf = infBuf;
} }
status_t ret; status_t ret;
Message msg; Message msg;
if (msg.Unflatten(buf()->GetBuffer(), buf()->GetNumBytes()).IsOK(ret)) if (msg.Unflatten(buf()->GetBuffer(), buf()->GetNumBytes()).IsOK(ret))
{ {
MessageRef infMsg = InflateMessage(MessageRef(&msg, false)); MessageRef infMsg = InflateMessage(DummyMessageRef(msg));
if ((infMsg())&&(infMsg() != &msg)) if ((infMsg())&&(infMsg() != &msg))
{ {
LogTime(MUSCLE_LOG_INFO, "Zlib-inflated Message from " UINT32_FORMAT _SPEC " bytes to " UINT32_FORMAT_SPEC " bytes\n", msg.FlattenedSize(), infMsg()- >FlattenedSize()); LogTime(MUSCLE_LOG_INFO, "Zlib-inflated Message from " UINT32_FORMAT _SPEC " bytes to " UINT32_FORMAT_SPEC " bytes\n", msg.FlattenedSize(), infMsg()- >FlattenedSize());
LogTime(MUSCLE_LOG_INFO, "Message is:\n"); LogTime(MUSCLE_LOG_INFO, "Message is:\n");
PrintMessageReport(*infMsg(), isSizeReport); PrintMessageReport(*infMsg(), isSizeReport);
infMsg()->PrintToStream(); infMsg()->PrintToStream();
} }
else else
{ {
LogTime(MUSCLE_LOG_INFO, "Message is:\n"); LogTime(MUSCLE_LOG_INFO, "Message is:\n");
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)