version 1.12, 2007/02/13 19:21:44
|
version 1.13, 2007/07/31 19:13:34
|
|
|
// | // |
// Write the serialized message to the pipe | // Write the serialized message to the pipe |
// | // |
Status writeStatus; |
|
try |
|
{ |
|
Uint32 messageLength = messageBuffer.size(); | Uint32 messageLength = messageBuffer.size(); |
const char * messageData = messageBuffer.getData (); | const char * messageData = messageBuffer.getData (); |
| |
writeStatus = |
Status writeStatus = |
writeBuffer((const char*) &messageLength, sizeof(Uint32)); | writeBuffer((const char*) &messageLength, sizeof(Uint32)); |
| |
if (writeStatus == STATUS_SUCCESS) | if (writeStatus == STATUS_SUCCESS) |
{ | { |
writeStatus = writeBuffer(messageData, messageLength); | writeStatus = writeBuffer(messageData, messageLength); |
} | } |
} |
|
catch (...) |
|
{ |
|
PEG_METHOD_EXIT (); |
|
throw; |
|
} |
|
| |
PEG_METHOD_EXIT (); | PEG_METHOD_EXIT (); |
return writeStatus; | return writeStatus; |