tibrvMsg_SetHandlers()
Function
Declaration
tibrv_statustibrvMsg_SetHandlers(
tibrv_u8 type,
tibrvMsgData_Encoder encoder,
tibrvMsgData_Decoder decoder,
tibrvMsgData_Converter converter);
Purpose
Define a program-specific datatype, by registering functions to transfer it between local format and wire format, and convert it to other datatypes.
Remarks
Programs that define custom data handler functions must register them before any message operations involving the custom datatype.
The program’s data handler functions must properly address byte order and endian issues.
|
Parameter |
Description |
|
|
Use this number as a unique identifier for the new datatype. The type identifier must be in the range [TIBRVMSG_USER_FIRST |
|
|
This function translates a local format instance of the datatype into wire format. See tibrvMsgData_Encoder.
|
|
|
This function translates wire format to a local format instance of the datatype. See tibrvMsgData_Decoder.
|
|
|
This function translates a field of this datatype to other datatypes. See tibrvMsgData_Converter.
|