"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "iogateway/PlainTextMessageIOGateway.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.

PlainTextMessageIOGateway.cpp  (muscle8.20):PlainTextMessageIOGateway.cpp  (muscle8.30)
skipping to change at line 99 skipping to change at line 99
{ {
_currentSendOffset = 0; _currentSendOffset = 0;
_currentSendText += _eolString; _currentSendText += _eolString;
} }
else else
{ {
_currentSendingMessage.Reset(); // no more text available? Go to t he next message then. _currentSendingMessage.Reset(); // no more text available? Go to t he next message then.
return DoOutputImplementationAux(maxBytes, recurseDepth+1); return DoOutputImplementationAux(maxBytes, recurseDepth+1);
} }
} }
if ((msg)&&(_currentSendOffset >= 0)&&(_currentSendOffset < (int32)_curren tSendText.Length())) if ((_currentSendOffset >= 0)&&(_currentSendOffset < (int32)_currentSendTe xt.Length()))
{ {
// Send as much as we can of the current text line // Send as much as we can of the current text line
const char * bytes = _currentSendText.Cstr() + _currentSendOffset; const char * bytes = _currentSendText.Cstr() + _currentSendOffset;
const int32 bytesWritten = GetDataIO()() ? GetDataIO()()->Write(bytes, muscleMin(_currentSendText.Length()-_currentSendOffset, maxBytes)) : -1; const int32 bytesWritten = GetDataIO()() ? GetDataIO()()->Write(bytes, muscleMin(_currentSendText.Length()-_currentSendOffset, maxBytes)) : -1;
if (bytesWritten < 0) return -1; if (bytesWritten < 0) return -1;
else if (bytesWritten > 0) else if (bytesWritten > 0)
{ {
_currentSendOffset += bytesWritten; _currentSendOffset += bytesWritten;
const int32 subRet = DoOutputImplementationAux(maxBytes-bytesWritten , recurseDepth+1); const int32 subRet = DoOutputImplementationAux(maxBytes-bytesWritten , recurseDepth+1);
return (subRet >= 0) ? subRet+bytesWritten : -1; return (subRet >= 0) ? subRet+bytesWritten : -1;
 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)