Navigation
API > API/Runtime > API/Runtime/Sockets
Implements a receiver for multichannel TCP sockets.
| Name | FMultichannelTcpReceiver |
| Type | class |
| Header File | /Engine/Source/Runtime/Sockets/Public/MultichannelTcpReceiver.h |
| Include Path | #include "MultichannelTcpReceiver.h" |
Syntax
class FMultichannelTcpReceiver : public FRunnable
Inheritance Hierarchy
- FRunnable → FMultichannelTcpReceiver
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMultichannelTcpReceiver
(
FSocket* InSocket, |
Creates and initializes a new instance. | MultichannelTcpReceiver.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FMultichannelTcpReceiver() |
Destructor. | MultichannelTcpReceiver.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BytesReceived | int32 | Holds the number of bytes received so far. | MultichannelTcpReceiver.h | |
| ReceiveDelegate | FOnMultichannelTcpReceive | Holds a delegate to be invoked when data has been received. | MultichannelTcpReceiver.h | |
| Socket | FSocket * | Holds the socket to use for communication. | MultichannelTcpReceiver.h | |
| Thread | FRunnableThread * | Holds the thread we are running on. | MultichannelTcpReceiver.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Exit() |
MultichannelTcpReceiver.h | ||
int32 GetBytesReceived() |
Gets the number of payload bytes actually sent to the socket. | MultichannelTcpReceiver.h | |
virtual bool Init() |
MultichannelTcpReceiver.h | ||
virtual uint32 Run() |
MultichannelTcpReceiver.h | ||
virtual void Stop() |
MultichannelTcpReceiver.h |