TipcMt user class for constructing, looking up, and destroying message types
The TipcMt class is a user C++ interface to the TipcMt-prefix SmartSockets function calls.
None
Syntax:
|
|
Remarks:
|
This destructor just destroys the object and not the message type to which it referred.
|
Syntax:
|
|
Remarks:
|
Get the delivery mode of a message type.
|
C API:
|
TipcMtGetDeliveryMode
|
|
|
Syntax:
|
|
Remarks:
|
Set the delivery mode of a message type.
|
C API:
|
TipcMtSetDeliveryMode
|
Syntax:
|
|
Remarks:
|
Get the delivery timeout of a message type.
|
C API:
|
TipcMtGetDeliveryTimeout
|
|
|
Syntax:
|
|
Remarks:
|
Set the delivery timeout of a message type.
|
C API:
|
TipcMtSetDeliveryTimeout
|
Syntax:
|
|
Remarks:
|
Get the load balancing mode of a message type.
|
C API:
|
TipcMtGetLbMode
|
|
|
Syntax:
|
|
Remarks:
|
Set the load balancing mode of a message type.
|
C API:
|
TipcMtSetLbMode
|
Syntax:
|
|
Remarks:
|
Get the priority of a message type.
|
C API:
|
TipcMtGetPriority
|
|
|
Syntax:
|
|
Remarks:
|
Set the priority of a message type.
|
C API:
|
TipcMtSetPriority
|
Syntax:
|
|
Remarks:
|
Get user-defined property from a message type.
|
C API:
|
TipcMtGetUserProp
|
|
|
Syntax:
|
|
Remarks:
|
Set user-defined property of a message type.
|
C API:
|
TipcMtSetUserProp
|
Syntax:
|
|
Remarks:
|
Convert a TipcMt object to a C API T_IPC_MT type by returning the internal T_IPC_MT message type.
|
This example creates a message type named "xyz_coord" that uses three integer coordinates, creates an XYZ_COORD message, appends fields, and writes the message to a message file. See the description of the TipcMtCreate function in the TIBCO SmartSockets Application Programming Interface for a corresponding C language version of this code fragment.
#include <rtworks/cxxipc.hxx> main() { #define USER_MT_XYZ_COORD 2000// Create the message type
TipcMt mt; mt.Create("xyz_coord", USER_MT_XYZ_COORD, "int4 int4 int4");// Create a message and append fields
TipcMsg msg(mt); msg << (T_INT4)5 << (T_INT4)2 << (T_INT4)9;// Create a message file
TipcMsgFile msg_file("test.msg", T_IPC_MSG_FILE_CREATE_WRITE); if (!msg_file) {// error
}// Write the message out
msg_file << msg.Message(); }
The program writes this to the message file test.msg
:
TIBCO SmartSockets™ cxxipc Class Library Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |