Navigation
API > API/Plugins > API/Plugins/WebSocketNetworking
| Name | UWebSocketNetDriver |
| Type | class |
| Header File | /Engine/Plugins/Experimental/WebSocketNetworking/Source/WebSocketNetworking/Public/WebSocketNetDriver.h |
| Include Path | #include "WebSocketNetDriver.h" |
Syntax
UCLASS (MinimalAPI, Transient, Config=Engine)
class UWebSocketNetDriver : public UNetDriver
Inheritance Hierarchy
- FExec → UNetDriver → UWebSocketNetDriver
- UObjectBase → UObjectBaseUtility → UObject → UNetDriver → UWebSocketNetDriver
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UWebSocketNetDriver
(
const FObjectInitializer& ObjectInitializer |
WebSocketNetDriver.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| WebSocketPort | int32 | WebSocket server port | WebSocketNetDriver.h |
|
| WebSocketServer | IWebSocketServer * | IWebSocketServer | WebSocketNetDriver.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UWebSocketConnection * GetServerConnection() |
WebSocketNetDriver.h | ||
bool HandleSocketsCommand
(
const TCHAR* Cmd, |
Exec command handlers | WebSocketNetDriver.h | |
void OnWebSocketClientConnected
(
INetworkingWebSocket* |
Callback Function for New Connection from a client is accepted by this server | WebSocketNetDriver.h | |
void OnWebSocketServerConnected() |
Callback Function for when this client Connects to the server | WebSocketNetDriver.h |
Overridden from UNetDriver
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ISocketSubsystem * GetSocketSubsystem() |
Stub implementation because for websockets we don't use any underlying socket sub system. | WebSocketNetDriver.h | |
virtual bool InitBase
(
bool bInitAsClient, |
WebSocketNetDriver.h | ||
virtual bool InitConnect
(
FNetworkNotify* InNotify, |
WebSocketNetDriver.h | ||
virtual bool InitListen
(
FNetworkNotify* InNotify, |
WebSocketNetDriver.h | ||
virtual bool IsAvailable() |
WebSocketNetDriver.h | ||
virtual bool IsNetResourceValid() |
WebSocketNetDriver.h | ||
virtual void LowLevelDestroy() |
WebSocketNetDriver.h | ||
virtual FString LowLevelGetNetworkNumber() |
WebSocketNetDriver.h | ||
virtual void LowLevelSend
(
TSharedPtr< const FInternetAddr > Address, |
WebSocketNetDriver.h | ||
virtual void TickDispatch
(
float DeltaTime |
WebSocketNetDriver.h |