Changeset 2303 for box/trunk/lib/server/ProtocolUncertainStream.cpp
- Timestamp:
- 30/09/2008 22:07:36 (4 years ago)
- File:
-
- 1 edited
-
box/trunk/lib/server/ProtocolUncertainStream.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/lib/server/ProtocolUncertainStream.cpp
r2127 r2303 78 78 } 79 79 80 BOX_TRACE("Reading " << toRead << " bytes from stream"); 81 80 82 // Read it 81 83 int r = mrSource.Read(((uint8_t*)pBuffer) + read, toRead, Timeout); … … 83 85 if(r == 0) 84 86 { 87 BOX_TRACE("Read " << r << " bytes from " 88 "stream, returning"); 85 89 return read; 86 90 } … … 93 97 if(r != toRead) 94 98 { 99 BOX_TRACE("Read " << r << " bytes from " 100 "stream, returning"); 95 101 return read; 96 102 } … … 103 109 { 104 110 // Didn't get the byte, return now 111 BOX_TRACE("Read 0 bytes of block header, " 112 "returning with " << read << " bytes " 113 "read this time"); 105 114 return read; 106 115 } … … 111 120 // All done. 112 121 mFinished = true; 122 BOX_TRACE("Stream finished, returning with " << 123 read << " bytes read this time"); 113 124 return read; 114 125 } … … 128 139 THROW_EXCEPTION(ServerException, ProtocolUncertainStreamBadBlockHeader) 129 140 } 141 142 BOX_TRACE("Next block has " << 143 mBytesLeftInCurrentBlock << "bytes"); 130 144 } 131 145 }
Note: See TracChangeset
for help on using the changeset viewer.
