Navigation
API > API/Plugins > API/Plugins/CaptureUtils
| Name | FTcpServer |
| Type | class |
| Header File | /Engine/Plugins/VirtualProduction/CaptureManager/CaptureManagerCore/Source/CaptureUtils/Public/Network/TcpServer.h |
| Include Path | #include "Network/TcpServer.h" |
Syntax
class FTcpServer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FTcpServer
(
const uint32 InMaxNumberOfClients |
Network/TcpServer.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FConnectionHandler | TBaseDelegate_TwoParams< void, TWeakPtr< FTcpClientHandler > InClient, bool bConnected > | Network/TcpServer.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| AnyPort | uint16 | Network/TcpServer.h | |
| ThreadWaitTime | uint32 | Network/TcpServer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bRunning | std::atomic_bool | Network/TcpServer.h | ||
| Clients | TMap< FString, TSharedPtr< FTcpClientHandler > > | Network/TcpServer.h | ||
| Listener | TUniquePtr< FTcpListener > | Network/TcpServer.h | ||
| MaxNumberOfClients | uint32 | Network/TcpServer.h | ||
| Mutex | FRWLock | Network/TcpServer.h | ||
| OnConnectionHandler | FConnectionHandler | Network/TcpServer.h | ||
| Socket | FSocketPtr | Network/TcpServer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void DisconnectClient
(
const FString& InEndpoint |
Network/TcpServer.h | ||
int32 GetPort() |
Network/TcpServer.h | ||
bool IsRunning() |
Network/TcpServer.h | ||
TProtocolResult< void > SendMessage
(
const TArray< uint8 >& InMessage, |
Network/TcpServer.h | ||
void SetConnectionHandler
(
FConnectionHandler InOnConnectionHandler |
Network/TcpServer.h | ||
TProtocolResult< uint16 > Start
(
const uint16 InListenPort |
Network/TcpServer.h | ||
TProtocolResult< void > Stop() |
Network/TcpServer.h |