INetworkFileSystemModule::CreateNetworkFileServer

Creates a new network file server.

Windows
MacOS
Linux

References

Module

NetworkFileSystem

Header

/Engine/Source/Runtime/NetworkFileSystem/Public/INetworkFileSystemModule.h

Include

#include "INetworkFileSystemModule.h"

Syntax

INetworkFileServer * CreateNetworkFileServer
(
    bool bLoadTargetPlatforms,
    int32 Port,
    FNetworkFileDelegateContainer InNetworkFileDelegateContainer,
    const ENetworkFileServerProtocol Protocol
) const

Remarks

Creates a new network file server.

Returns

The new file server, or nullptr if creation failed.

Parameters

Parameter

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss