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

Interface for message transport technologies. 更多...

#include <IMessageTransport.h>

Public 成员函数

virtual FName GetDebugName () const =0
 Gets the name of this transport (for debugging purposes). 更多...
 
virtual bool StartTransport (IMessageTransportHandler &Handler)=0
 Starts up the message transport. 更多...
 
virtual void StopTransport ()=0
 Shuts down the message transport. 更多...
 
virtual bool TransportMessage (const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &Context, const TArray< FGuid > &Recipients)=0
 Transports the given message data to the specified network nodes. 更多...
 

Protected 成员函数

virtual ~IMessageTransport ()
 Virtual destructor.
 

详细描述

Interface for message transport technologies.

Licensees can implement this interface to add support for custom message transport technologies that are not supported out of the box, i.e. custom network protocols or APIs.

成员函数说明

◆ GetDebugName()

virtual FName IMessageTransport::GetDebugName ( ) const
pure virtual

Gets the name of this transport (for debugging purposes).

返回
The debug name.

◆ StartTransport()

virtual bool IMessageTransport::StartTransport ( IMessageTransportHandler &  Handler)
pure virtual

Starts up the message transport.

参数
HandlerThe handler of inbound transport messages and events.
返回
Whether the transport was started successfully.
参见
StopTransport

◆ StopTransport()

virtual void IMessageTransport::StopTransport ( )
pure virtual

Shuts down the message transport.

参见
StartTransport

◆ TransportMessage()

virtual bool IMessageTransport::TransportMessage ( const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &  Context,
const TArray< FGuid > &  Recipients 
)
pure virtual

Transports the given message data to the specified network nodes.

参数
ContextThe context of the message to transport.
RecipientsThe transport nodes to send the message to.
返回
true if the message is being transported, false otherwise.

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