Navigation
API > API/Runtime > API/Runtime/NetworkFileSystem > API/Runtime/NetworkFileSystem/INetworkFileSystemModule > API/Runtime/NetworkFileSystem/INetworkFileSystemModule/CreateNetworkFileServer
References
| Module | NetworkFileSystem |
| Header | /Engine/Source/Runtime/NetworkFileSystem/Public/INetworkFileSystemModule.h |
| Include | #include "INetworkFileSystemModule.h" |
INetworkFileServer &42; CreateNetworkFileServer
&40;
bool bLoadTargetPlatforms,
int32 Port,
FNetworkFileDelegateContainer InNetworkFileDelegateContainer,
const ENetworkFileServerProtocol Protocol
&41; const
Remarks
Creates a new network file server. The new file server, or nullptr if creation failed.
Parameters
| Name | Description |
|---|---|
| InPort | The port number to bind to (-1 = default port, 0 = any available port). |
| Streaming | Whether it should be a streaming server. |
| InFileRequestDelegate | An optional delegate to be invoked when a file is requested by a client. |
| InRecompileShadersDelegate | An optional delegate to be invoked when shaders need to be recompiled. |