Navigation
API > API/Plugins > API/Plugins/WebSocketNetworking > API/Plugins/WebSocketNetworking/IWebSocketServer
Description
Set which network protocols the server should listen on. Must be called before Init(). Default: IPv4 only. IPv4 - listen on 0.0.0.0 (IPv4 only) IPv6 - listen on :: (IPv6 only, IPV6_V6ONLY=1) IPv4|IPv6 - listen on :: (dual-stack, IPV6_V6ONLY=0)
| Name | SetNetworkProtocol |
| Type | function |
| Header File | /Engine/Plugins/Experimental/WebSocketNetworking/Source/WebSocketNetworking/Public/IWebSocketServer.h |
| Include Path | #include "IWebSocketServer.h" |
virtual void SetNetworkProtocol
(
ENetworkProtocol Protocol
)