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

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

#include <MultichannelTcpSender.h>

+ 类 FMultichannelTcpSender 继承关系图:

Public 成员函数

void AttemptResumeSending ()
 Call when bandwidth tests should be retried, possibly sending data if there is available bandwidth.
 
virtual void Exit ()
 Exits the runnable object. 更多...
 
 FMultichannelTcpSender (FSocket *InSocket, const FOnMultichannelTcpOkToSend &InOkToSendDelegate)
 Creates and initializes a new instance. 更多...
 
int32 GetBytesSent ()
 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. 更多...
 
void Send (const uint8 *Data, int32 Count, uint32 Channel)
 Sends data through the given channel. 更多...
 
virtual void Stop ()
 Stops the runnable object. 更多...
 
 ~FMultichannelTcpSender ()
 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
 

Protected 成员函数

void AttemptResumeSendingInternal ()
 Internal call similar to AttemptResumeSending, but does not do the requisite lock.
 

详细描述

Implements a sender for multichannel TCP sockets.

构造及析构函数说明

◆ FMultichannelTcpSender()

FMultichannelTcpSender::FMultichannelTcpSender ( FSocket *  InSocket,
const FOnMultichannelTcpOkToSend &  InOkToSendDelegate 
)
inline

Creates and initializes a new instance.

参数
InSocketThe socket to send to.
InOkToSendDelegateDelegate to ask if it is ok to send a packet.

成员函数说明

◆ Exit()

virtual void FMultichannelTcpSender::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 FMultichannelTcpSender::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 FMultichannelTcpSender::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.

◆ Send()

void FMultichannelTcpSender::Send ( const uint8 *  Data,
int32  Count,
uint32  Channel 
)
inline

Sends data through the given channel.

This method does not block on bandwidth and never fails.

参数
DataThe buffer containing the data to send.
CountThe number of bytes to send from the buffer.

◆ Stop()

virtual void FMultichannelTcpSender::Stop ( )
inlinevirtual

Stops the runnable object.

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

参见
Init, Run, Exit

重载 FRunnable .


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