[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Certi-testintegration] socket data
From: |
cj zhang |
Subject: |
[Certi-testintegration] socket data |
Date: |
Sun, 31 Jan 2010 23:40:29 +0800 |
1.when i debug the 3.3.3 rti in the environment of 15 client, i received the RTIinternalError exception.i trace the code ,it
refer to line 213 of MessageBuffer.cc . then, n=1,readOffset=5,writeOffset=5 what is happen?
the code is:
////////////////////////////////////////////////////////////////////////////////////////////
int32_t MessageBuffer::read_uint8s(uint8_t* data, uint32_t n) {
if (n + readOffset > writeOffset) {
std::stringstream smsg;
smsg << "read_uint8s::invalid read of size <" << n
<< "> inside a buffer of readable size <"
<< (int32_t)writeOffset-readOffset << "> (writeOffset="
<<writeOffset << ",readOffset="<<readOffset <<").";
throw RTIinternalError(smsg.str().c_str());
}
memcpy(data, buffer+readOffset, n);
readOffset += n;
D.Out(pdTrace,"read_uint8s(%p = [%u ...], %d)",data,n>0?data[0]:0,n);
return (readOffset-n);
} /*
/////////////////////////////////////////////////////////////////////////////////////////////
2 in the function Message::receive of Message_R.cc, what's the data format?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Certi-testintegration] socket data,
cj zhang <=