请声明出处:
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;
};