UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FNetworkFileSystemModule Class Reference
+ Inheritance diagram for FNetworkFileSystemModule:

Public Member Functions

virtual INetworkFileServerCreateNetworkFileServer (bool bLoadTargetPlatforms, int32 Port, FNetworkFileDelegateContainer NetworkFileDelegateContainer, const ENetworkFileServerProtocol Protocol) const
 
virtual INetworkFileServerCreateNetworkFileServer (FNetworkFileServerOptions FileServerOptions, bool bLoadTargetPlatforms) const override
 
virtual INetworkFileServerCreateNetworkFileServer (TSharedRef< UE::Cook::ICookOnTheFlyNetworkServer > CookOnTheFlyNetworkServer, FNetworkFileDelegateContainer Delegates) const override
 
- Public Member Functions inherited from INetworkFileSystemModule
virtual ~INetworkFileSystemModule ()
 
- Public Member Functions inherited from IModuleInterface
virtual ~IModuleInterface ()
 
virtual void StartupModule ()
 
virtual void PreUnloadCallback ()
 
virtual void PostLoadCallback ()
 
virtual void ShutdownModule ()
 
virtual bool SupportsDynamicReloading ()
 
virtual bool SupportsAutomaticShutdown ()
 
virtual bool IsGameModule () const
 

Detailed Description

Implements the NetworkFileSystem module.

Member Function Documentation

◆ CreateNetworkFileServer() [1/3]

virtual INetworkFileServer * FNetworkFileSystemModule::CreateNetworkFileServer ( bool  bLoadTargetPlatforms,
int32  Port,
FNetworkFileDelegateContainer  InNetworkFileDelegateContainer,
const ENetworkFileServerProtocol  Protocol 
) const
inlinevirtual

Creates a new network file server.

Parameters
InPortThe port number to bind to (-1 = default port, 0 = any available port).
StreamingWhether it should be a streaming server.
InFileRequestDelegateAn optional delegate to be invoked when a file is requested by a client.
InRecompileShadersDelegateAn optional delegate to be invoked when shaders need to be recompiled.
Returns
The new file server, or nullptr if creation failed.

Implements INetworkFileSystemModule.

◆ CreateNetworkFileServer() [2/3]

virtual INetworkFileServer * FNetworkFileSystemModule::CreateNetworkFileServer ( FNetworkFileServerOptions  FileServerOptions,
bool  bLoadTargetPlatforms 
) const
inlineoverridevirtual

Creates a new network file server.

Parameters
FileServerOptionsFile server options
bLoadTargetPlatformsIf true, gets the target platform from the command line or all available target platforms
Returns
The new file server, or nullptr if creation failed.

Implements INetworkFileSystemModule.

◆ CreateNetworkFileServer() [3/3]

virtual INetworkFileServer * FNetworkFileSystemModule::CreateNetworkFileServer ( TSharedRef< UE::Cook::ICookOnTheFlyNetworkServer >  CookOnTheFlyNetworkServer,
FNetworkFileDelegateContainer  Delegates 
) const
inlineoverridevirtual

Creates a new network file server for COTF.

Parameters
CookOnTheFlyNetworkServerCookOnTheFly network server
DelegatesDelegates to be invoked when a file is requested by a client.
Returns
The new file server, or nullptr if creation failed.

Reimplemented from INetworkFileSystemModule.


The documentation for this class was generated from the following file: