Defines a new message type.
Once a message type is defined, it may be looked up with the name and number lookup functions.
For example, to define a new message type named "foo", which has the number '500', and is intended to take two integer fields and a string field, you'd do this:
TipcMt mt = TipcSvc.createMt("foo", 500, "int4 int4 str");
You may use the TipcMt object directly, or look up the instance by name or number, like any other predefined message type:
// look up a message type by name TipcMt mt = TipcSvc.lookupMt("foo"); // look up a message type by number TipcMt mt = TipcSvc.lookupMt(500);
a new object implementing the TipcMt interface.
Exception Type | Condition |
---|---|
TipcAlreadyExistsException | An attempt was made to create a message type using a name or number that is already used by an existing message type. |
TipcException | For all other errors |
TipcSvc Class | TipcSvc Members | TIBCO.SMARTSOCKETS Namespace | TipcMt | lookupMt | lookupMt