TibrvCmMsg::getSender()

Method

Declaration

static TibrvStatus getSender(
    TibrvMsg& msg,
    const char*& name);

Purpose

Extract the correspondent name of the sender from a certified message.

Parameter

Description

msg

Extract the sender name from this message.

name

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.

See Also

TibrvCmTransport::create()

TibrvCmTransport::getName()