engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IMessageTransportHandler类 参考abstract

Interface for message transport event handlers. 更多...

#include <IMessageTransportHandler.h>

Public 成员函数

virtual void DiscoverTransportNode (const FGuid &NodeId)=0
 Called by message transports when a transport node has been discovered. 更多...
 
virtual void ForgetTransportNode (const FGuid &NodeId)=0
 Called by message transports when a transport node has been lost. 更多...
 
virtual void ReceiveTransportMessage (const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &Context, const FGuid &NodeId)=0
 Called by message transports when a message was received. 更多...
 
virtual ~IMessageTransportHandler ()
 Virtual destructor.
 

详细描述

Interface for message transport event handlers.

This interface is typically implemented by message bridges and other classes that manage a message transport and wish to receive messages from it. This interface also notifies implementors of discovered and lost transport nodes.

A transport node is the internal representation of a remote message endpoint that may exist in a different process or on a different computer. The actual implementation of these nodes depends on the transport layer. It may be a network socket connection, a named pipe, or some other communication technology.

Each transport node gets a globally unique identifier that can be used by a message bridge to translate local message addresses to remote message endpoints. When a message endpoint on the message bus sends a message to a specific message address that represents a remote endpoint, the message bridge maps the address to a transport identifier, which is then mapped again to the corresponding connection in the transport layer.

参见
IMessageBridge, IMessageBus, IMessageContext, IMessageTransport

成员函数说明

◆ DiscoverTransportNode()

virtual void IMessageTransportHandler::DiscoverTransportNode ( const FGuid &  NodeId)
pure virtual

Called by message transports when a transport node has been discovered.

参数
NodeIdThe identifier of the discovered transport node.
参见
ForgetTransportNode

◆ ForgetTransportNode()

virtual void IMessageTransportHandler::ForgetTransportNode ( const FGuid &  NodeId)
pure virtual

Called by message transports when a transport node has been lost.

参数
NodeIdThe identifier of the lost transport node.
参见
DiscoverTransportNode

◆ ReceiveTransportMessage()

virtual void IMessageTransportHandler::ReceiveTransportMessage ( const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &  Context,
const FGuid &  NodeId 
)
pure virtual

Called by message transports when a message was received.

参数
ContextThe context of the received message.
NodeIdThe identifier of the transport node that received the message.

该类的文档由以下文件生成: