您的位置:首页 > 移动开发 > Objective-C

yate学习--yatengine.h--class YATE_API MessageReceiver : public GenObject

2015-05-05 09:37 405 查看
请声明出处:

MessageReceiver,这个类是一个消息接受的基类:

/**
 * A multiple message receiver to be invoked by a message relay
 * 多个消息***调用消息传递
 * @short A multiple message receiver
 * @short 多个消息***
 */
class YATE_API MessageReceiver : public GenObject
{
public:
    /**
     * This method is called from the message relay.
     * 这个方法在消息转发的时候被调用
     * @param msg The received message
     * @参数msg,接收到的消息
     * @param id The identifier with which the relay was created
     * @参数id, 转发消息被创建的标识符
     * @return True to stop processing, false to try other handlers
     * @返回rtue,该消息不再转发,false,继续转发给其他的处理者
     */
    virtual bool received(Message& msg, int id) = 0;
};
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: