Navigation
API > API/Plugins > API/Plugins/WebSocketNetworking > API/Plugins/WebSocketNetworking/UWebSocketNetDriver
- UNetDriver::InitBase()
- UWebSocketNetDriver::InitBase()
References
| Module | WebSocketNetworking |
| Header | /Engine/Plugins/Experimental/WebSocketNetworking/Source/WebSocketNetworking/Public/WebSocketNetDriver.h |
| Include | #include "WebSocketNetDriver.h" |
| Source | /Engine/Plugins/Experimental/WebSocketNetworking/Source/WebSocketNetworking/Private/WebSocketNetDriver.cpp |
virtual bool InitBase
&40;
bool bInitAsClient,
FNetworkNotify &42; InNotify,
const FURL & URL,
bool bReuseAddressAndPort,
FString & Error
&41;
Remarks
Common initialization between server and client connection setup true if successful, false otherwise (check Error parameter)
Parameters
| Name | Description |
|---|---|
| bInitAsClient | are we a client or server |
| InNotify | notification object to associate with the net driver |
| URL | destination |
| bReuseAddressAndPort | whether to allow multiple sockets to be bound to the same address/port |
| Error | output containing an error string on failure |