TibrvCmMsg::getSender()
Method
Declaration
static TibrvStatusgetSender
(
TibrvMsg& msg,
const char*& name);
Purpose
Extract the correspondent name of the sender from a certified message.
Parameter |
Description |
|
Extract the sender name from this message. |
|
The program supplies a variable. The method stores the name in that variable. |
Status
This method returns a status code that discriminates between labeled messages and other messages.
• | If the message is from a CM sender, then TibrvCmMsg::getSender() returns the status code TIBRV_OK and yields a valid CM correspondent name. |
• | If the message is not from a CM sender, then TibrvCmMsg::getSender() returns the status code TIBRV_NOT_FOUND. |