Implements a sender for multichannel TCP sockets.
更多...
#include <MultichannelTcpSender.h>
|
|
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.
|
| |
| 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
|
| |
|
|
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.
- 参数
-
| InSocket | The socket to send to. |
| InOkToSendDelegate | Delegate 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.
- 参数
-
| Data | The buffer containing the data to send. |
| Count | The 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 .
该类的文档由以下文件生成: