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

Implements a receiver for multichannel TCP sockets. 更多...

#include <MultichannelTcpReceiver.h>

+ 类 FMultichannelTcpReceiver 继承关系图:

Public 成员函数

virtual void Exit ()
 Exits the runnable object. 更多...
 
 FMultichannelTcpReceiver (FSocket *InSocket, const FOnMultichannelTcpReceive &InReceiveDelegate)
 Creates and initializes a new instance. 更多...
 
int32 GetBytesReceived ()
 Gets the number of payload bytes actually sent to the socket.
 
virtual bool Init ()
 Initializes the runnable object. 更多...
 
virtual uint32 Run ()
 Runs the runnable object. 更多...
 
virtual void Stop ()
 Stops the runnable object. 更多...
 
 ~FMultichannelTcpReceiver ()
 Destructor.
 
- Public 成员函数 继承自 FRunnable
virtual void Exit ()
 Exits the runnable object. 更多...
 
virtual class FSingleThreadRunnable * GetSingleThreadInterface ()
 Gets single thread interface pointer used for ticking this runnable when multi-threading is disabled. 更多...
 
virtual bool Init ()
 Initializes the runnable object. 更多...
 
virtual uint32 Run ()=0
 Runs the runnable object. 更多...
 
virtual void Stop ()
 Stops the runnable object. 更多...
 
virtual ~FRunnable ()
 Virtual destructor
 

详细描述

Implements a receiver for multichannel TCP sockets.

构造及析构函数说明

◆ FMultichannelTcpReceiver()

FMultichannelTcpReceiver::FMultichannelTcpReceiver ( FSocket *  InSocket,
const FOnMultichannelTcpReceive &  InReceiveDelegate 
)
inline

Creates and initializes a new instance.

参数
InSocketThe socket to receive from.
InReceiveDelegateDelete to handle data as it becomes available, called from the receive thread.

成员函数说明

◆ Exit()

virtual void FMultichannelTcpReceiver::Exit ( )
inlinevirtual

Exits the runnable object.

Called in the context of the aggregating thread to perform any cleanup.

参见
Init, Run, Stop

重载 FRunnable .

◆ Init()

virtual bool FMultichannelTcpReceiver::Init ( )
inlinevirtual

Initializes the runnable object.

This method is called in the context of the thread object that aggregates this, not the thread that passes this runnable to a new thread.

返回
True if initialization was successful, false otherwise
参见
Run, Stop, Exit

重载 FRunnable .

◆ Run()

virtual uint32 FMultichannelTcpReceiver::Run ( )
inlinevirtual

Runs the runnable object.

This is where all per object thread work is done. This is only called if the initialization was successful.

返回
The exit code of the runnable object
参见
Init, Stop, Exit

实现了 FRunnable.

◆ Stop()

virtual void FMultichannelTcpReceiver::Stop ( )
inlinevirtual

Stops the runnable object.

This is called if a thread is requested to terminate early.

参见
Init, Run, Exit

重载 FRunnable .


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