version 1.10, 2006/11/30 11:50:32
|
version 1.12, 2007/02/13 19:21:44
|
|
|
Status writeStatus; | Status writeStatus; |
try | try |
{ | { |
Uint32 messageLength = (Uint32) messageBuffer.size (); |
Uint32 messageLength = messageBuffer.size(); |
const char * messageData = messageBuffer.getData (); | const char * messageData = messageBuffer.getData (); |
| |
writeStatus = writeBuffer ((const char *) &messageLength, |
writeStatus = |
sizeof (Uint32)); |
writeBuffer((const char*) &messageLength, sizeof(Uint32)); |
| |
if (writeStatus == STATUS_SUCCESS) | if (writeStatus == STATUS_SUCCESS) |
{ | { |
writeStatus = writeBuffer (messageBuffer.getData (), |
writeStatus = writeBuffer(messageData, messageLength); |
messageLength); |
|
} | } |
} | } |
catch (...) | catch (...) |