version 1.8, 2006/08/09 21:12:42
|
version 1.13.2.1, 2007/09/11 16:32:42
|
|
|
// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
// | // |
//============================================================================== |
//============================================================================= |
// | // |
// Author: Carol Ann Krug Graves, Hewlett-Packard Company |
//%//////////////////////////////////////////////////////////////////////////// |
// (carolann_graves@hp.com) |
|
// |
|
// Modified By: David Dillard, VERITAS Software Corp. |
|
// (david.dillard@veritas.com) |
|
// Sean Keenan (sean.keenan@hp.com) |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// |
|
| |
#include <Pegasus/Common/CIMMessageSerializer.h> | #include <Pegasus/Common/CIMMessageSerializer.h> |
#include <Pegasus/Common/CIMMessageDeserializer.h> | #include <Pegasus/Common/CIMMessageDeserializer.h> |
|
|
# include "AnonymousPipePOSIX.cpp" | # include "AnonymousPipePOSIX.cpp" |
#elif defined (PEGASUS_OS_VMS) | #elif defined (PEGASUS_OS_VMS) |
# include "AnonymousPipePOSIX.cpp" | # include "AnonymousPipePOSIX.cpp" |
|
#elif defined (PEGASUS_OS_VXWORKS) |
|
# include "AnonymousPipePOSIX.cpp" |
#else | #else |
# error "Unsupported platform" | # error "Unsupported platform" |
#endif | #endif |
|
|
// | // |
// 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 = writeBuffer ((const char *) &messageLength, |
Status 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 (...) |
|
{ |
|
PEG_METHOD_EXIT (); |
|
throw; |
|
} | } |
| |
PEG_METHOD_EXIT (); | PEG_METHOD_EXIT (); |