UOperatingSystemSimulatedNetworkSubsystem
#include <OperatingSystemSimulator/Public/Subsystems/OperatingSystemSimulatedNetworkSubsystem.h>class UOperatingSystemSimulatedNetworkSubsystemDefined in OperatingSystemSimulatedNetworkSubsystem.h:19
Inherits:
UWorldSubsystem
Inheritance diagram
Section titled “Inheritance diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemSimulatedNetworkSubsystem["UOperatingSystemSimulatedNetworkSubsystem"]
class UWorldSubsystem["UWorldSubsystem"]
UWorldSubsystem <|-- UOperatingSystemSimulatedNetworkSubsystem
Collaboration diagram
Section titled “Collaboration diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemSimulatedNetworkSubsystem["UOperatingSystemSimulatedNetworkSubsystem"]
class FOperatingSystemSimulatedNetworkProxy["FOperatingSystemSimulatedNetworkProxy"]
UOperatingSystemSimulatedNetworkSubsystem *-- FOperatingSystemSimulatedNetworkProxy
class FOperatingSystemSimulatedNetwork["FOperatingSystemSimulatedNetwork"]
UOperatingSystemSimulatedNetworkSubsystem *-- FOperatingSystemSimulatedNetwork
Class detail
Section titled “Class detail”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemSimulatedNetworkSubsystem {
+OnOperatingSystemSimulatedNetworkCreated : FOnOperatingSystemSimulatedNetworkCreate
+OnOperatingSystemSimulatedNetworkDeviceConnected : FOnOperatingSystemSimulatedNetworkDevice
+OnOperatingSystemSimulatedNetworkDeviceDisconnected : FOnOperatingSystemSimulatedNetworkDevice
+OnOperatingSystemSimulatedNetworkDeviceForget : FOnOperatingSystemSimulatedNetworkDevice
+OnOperatingSystemSimulatedNetworkLocationUpdated : FOnOperatingSystemSimulatedNetworkLocati
+OnOperatingSystemSimulatedNetworkRemoved : FOnOperatingSystemSimulatedNetworkRemove
+DoesSupportWorldType(const EWorldType::Type WorldType) const ove bool
+UpdateNetworkLocation(const FOperatingSystemSimulatedNetwork &Tar bool
+GetAllSimulatedNetworks() const const TArray< FOperatingSystemSimulatedN
+AddSimulatedNetworks(UOperatingSystemSimulatedNetworkProviderCom
+RemoveSimulatedNetworks(UOperatingSystemSimulatedNetworkProviderCom
+ConnectDeviceToNetwork(UOperatingSystemBaseDevice *TargetDevice, c bool
+DisconnectDeviceFromNetwork(UOperatingSystemBaseDevice *TargetDevice) c bool
+ForgetNetwork(UOperatingSystemBaseDevice *TargetDevice, c bool
+Get(const UObject *WorldContextObject) UOperatingSystemSimulatedNetworkSubsyste
+IsSameNetwork(const FOperatingSystemSimulatedNetwork &A, bool
+IsDeviceConnectedToNetwork(UOperatingSystemBaseDevice *TargetDevice, F bool
+SimulatedNetworks : TSet< FOperatingSystemSimulatedNetworkPr
+Networks : TArray< FOperatingSystemSimulatedNetwork
}
Caller impact — Get
Section titled “Caller impact — Get”Documented call sites inside the plugin (9):
flowchart LR UOperatingSystemSimulatedNetworkSubsystem__Get["UOperatingSystemSimulatedNetworkSubsystem::Get"] UOperatingSystemSimulatedNetworkProviderComponent__Activate["UOperatingSystemSimulatedNetworkProviderComponent::Activate"] UOperatingSystemSimulatedNetworkProviderComponent__Activate --> UOperatingSystemSimulatedNetworkSubsystem__Get UOperatingSystemBaseDevice__ConnectToNetwork["UOperatingSystemBaseDevice::ConnectToNetwork"] UOperatingSystemBaseDevice__ConnectToNetwork --> UOperatingSystemSimulatedNetworkSubsystem__Get UOperatingSystemSimulatedNetworkProviderComponent__Deactivate["UOperatingSystemSimulatedNetworkProviderComponent::Deactivate"] UOperatingSystemSimulatedNetworkProviderComponent__Deactivate --> UOperatingSystemSimulatedNetworkSubsystem__Get UOperatingSystemBaseDevice__DisconnectFromNetwork["UOperatingSystemBaseDevice::DisconnectFromNetwork"] UOperatingSystemBaseDevice__DisconnectFromNetwork --> UOperatingSystemSimulatedNetworkSubsystem__Get UOperatingSystemBaseDevice__Internal_DestroyDevice["UOperatingSystemBaseDevice::Internal_DestroyDevice"] UOperatingSystemBaseDevice__Internal_DestroyDevice --> UOperatingSystemSimulatedNetworkSubsystem__Get UOperatingSystemBaseDevice__Internal_OnNetworkLocationUpdated["UOperatingSystemBaseDevice::Internal_OnNetworkLocationUpdated"] UOperatingSystemBaseDevice__Internal_OnNetworkLocationUpdated --> UOperatingSystemSimulatedNetworkSubsystem__Get UOperatingSystemBaseDevice__Internal_OnNetworkRemoved["UOperatingSystemBaseDevice::Internal_OnNetworkRemoved"] UOperatingSystemBaseDevice__Internal_OnNetworkRemoved --> UOperatingSystemSimulatedNetworkSubsystem__Get UOperatingSystemBaseDevice__SetCanConnectToNetwork["UOperatingSystemBaseDevice::SetCanConnectToNetwork"] UOperatingSystemBaseDevice__SetCanConnectToNetwork --> UOperatingSystemSimulatedNetworkSubsystem__Get UOperatingSystemSimulatedNetworkProviderComponent__UpdateAllNetworkLocations["UOperatingSystemSimulatedNetworkProviderComponent::UpdateAllNetworkLocations"] UOperatingSystemSimulatedNetworkProviderComponent__UpdateAllNetworkLocations --> UOperatingSystemSimulatedNetworkSubsystem__Get
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
FOnOperatingSystemSimulatedNetworkCreated | OnOperatingSystemSimulatedNetworkCreated | Broadcasted when a new simulated network is created |
FOnOperatingSystemSimulatedNetworkDeviceConnected | OnOperatingSystemSimulatedNetworkDeviceConnected | Broadcasted when a device is connected to a simulated network |
FOnOperatingSystemSimulatedNetworkDeviceDisconnected | OnOperatingSystemSimulatedNetworkDeviceDisconnected | Broadcasted when a device is disconnected from a simulated network |
FOnOperatingSystemSimulatedNetworkDeviceForget | OnOperatingSystemSimulatedNetworkDeviceForget | Broadcasted when a device forgets a simulated network |
FOnOperatingSystemSimulatedNetworkLocationUpdated | OnOperatingSystemSimulatedNetworkLocationUpdated | Broadcasted when a simulated network’s location is updated |
FOnOperatingSystemSimulatedNetworkRemoved | OnOperatingSystemSimulatedNetworkRemoved | Broadcasted when a simulated network is removed |
OnOperatingSystemSimulatedNetworkCreated
Section titled “OnOperatingSystemSimulatedNetworkCreated”FOnOperatingSystemSimulatedNetworkCreated OnOperatingSystemSimulatedNetworkCreatedDefined in OperatingSystemSimulatedNetworkSubsystem.h:33 Broadcasted when a new simulated network is created
Referenced by
Section titled “Referenced by”OnOperatingSystemSimulatedNetworkDeviceConnected
Section titled “OnOperatingSystemSimulatedNetworkDeviceConnected”FOnOperatingSystemSimulatedNetworkDeviceConnected OnOperatingSystemSimulatedNetworkDeviceConnectedDefined in OperatingSystemSimulatedNetworkSubsystem.h:37 Broadcasted when a device is connected to a simulated network
Referenced by
Section titled “Referenced by”OnOperatingSystemSimulatedNetworkDeviceDisconnected
Section titled “OnOperatingSystemSimulatedNetworkDeviceDisconnected”FOnOperatingSystemSimulatedNetworkDeviceDisconnected OnOperatingSystemSimulatedNetworkDeviceDisconnectedDefined in OperatingSystemSimulatedNetworkSubsystem.h:41 Broadcasted when a device is disconnected from a simulated network
Referenced by
Section titled “Referenced by”OnOperatingSystemSimulatedNetworkDeviceForget
Section titled “OnOperatingSystemSimulatedNetworkDeviceForget”FOnOperatingSystemSimulatedNetworkDeviceForget OnOperatingSystemSimulatedNetworkDeviceForgetDefined in OperatingSystemSimulatedNetworkSubsystem.h:45 Broadcasted when a device forgets a simulated network
Referenced by
Section titled “Referenced by”OnOperatingSystemSimulatedNetworkLocationUpdated
Section titled “OnOperatingSystemSimulatedNetworkLocationUpdated”FOnOperatingSystemSimulatedNetworkLocationUpdated OnOperatingSystemSimulatedNetworkLocationUpdatedDefined in OperatingSystemSimulatedNetworkSubsystem.h:49 Broadcasted when a simulated network’s location is updated
Referenced by
Section titled “Referenced by”OnOperatingSystemSimulatedNetworkRemoved
Section titled “OnOperatingSystemSimulatedNetworkRemoved”FOnOperatingSystemSimulatedNetworkRemoved OnOperatingSystemSimulatedNetworkRemovedDefined in OperatingSystemSimulatedNetworkSubsystem.h:53 Broadcasted when a simulated network is removed
Referenced by
Section titled “Referenced by”Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
bool | DoesSupportWorldType virtual const override | |
bool | UpdateNetworkLocation | |
const TArray< FOperatingSystemSimulatedNetwork > & | GetAllSimulatedNetworks const | Get the list of all simulated networks in the subsystem. |
void | AddSimulatedNetworks | Add a new simulated network to the subsystem. |
void | RemoveSimulatedNetworks | Remove simulated networks provided by a specific network provider component from the subsystem. |
bool | ConnectDeviceToNetwork | Connect a device to a simulated network. |
bool | DisconnectDeviceFromNetwork const | Disconnect a device from its currently connected simulated network. |
bool | ForgetNetwork const | Forget a previously saved network for a device. |
DoesSupportWorldType
Section titled “DoesSupportWorldType”virtual const override
virtual bool DoesSupportWorldType(const EWorldType::Type WorldType) const overrideDefined in OperatingSystemSimulatedNetworkSubsystem.h:57
Section titled “Defined in OperatingSystemSimulatedNetworkSubsystem.h:57”UpdateNetworkLocation
Section titled “UpdateNetworkLocation”bool UpdateNetworkLocation(const FOperatingSystemSimulatedNetwork & Target, const FVector & NewLocation)Defined in OperatingSystemSimulatedNetworkSubsystem.h:59
References
Section titled “References”GetAllSimulatedNetworks
Section titled “GetAllSimulatedNetworks”const
const TArray< FOperatingSystemSimulatedNetwork > & GetAllSimulatedNetworks() constDefined in OperatingSystemSimulatedNetworkSubsystem.h:73 Get the list of all simulated networks in the subsystem.
This method returns a constant reference to an array containing all the simulated networks managed by the subsystem. The returned array is read-only and should not be modified directly.
Returns
Section titled “Returns”A constant reference to an array of FOperatingSystemSimulatedNetwork representing all simulated networks.
References
Section titled “References”AddSimulatedNetworks
Section titled “AddSimulatedNetworks”void AddSimulatedNetworks(UOperatingSystemSimulatedNetworkProviderComponent * NetworkProviderComponent)Defined in OperatingSystemSimulatedNetworkSubsystem.h:83 Add a new simulated network to the subsystem.
This method adds a new simulated network to the subsystem’s list of networks. If a network with the same name already exists, it will not be added again.
Parameters
Section titled “Parameters”NetworkProviderComponentThe UOperatingSystemSimulatedNetworkProviderComponent that provides the new network to be added.
References
Section titled “References”RemoveSimulatedNetworks
Section titled “RemoveSimulatedNetworks”void RemoveSimulatedNetworks(UOperatingSystemSimulatedNetworkProviderComponent * NetworkProviderComponent)Defined in OperatingSystemSimulatedNetworkSubsystem.h:92 Remove simulated networks provided by a specific network provider component from the subsystem.
This method removes all simulated networks added by the specified UOperatingSystemSimulatedNetworkProviderComponent from the subsystem’s list of networks.
Parameters
Section titled “Parameters”NetworkProviderComponentThe UOperatingSystemSimulatedNetworkProviderComponent whose networks should be removed.
References
Section titled “References”ConnectDeviceToNetwork
Section titled “ConnectDeviceToNetwork”bool ConnectDeviceToNetwork(UOperatingSystemBaseDevice * TargetDevice, const FText & NetworkName, const FText & Password)Defined in OperatingSystemSimulatedNetworkSubsystem.h:105 Connect a device to a simulated network.
This method attempts to connect the specified device to a simulated network with the given name and password.
Parameters
Section titled “Parameters”-
TargetDeviceThe device to connect to the network. -
NetworkNameThe name of the network to connect to. -
PasswordThe password for the network.
Returns
Section titled “Returns”True if the connection was successful, false otherwise.
References
Section titled “References”DisconnectDeviceFromNetwork
Section titled “DisconnectDeviceFromNetwork”const
bool DisconnectDeviceFromNetwork(UOperatingSystemBaseDevice * TargetDevice) constDefined in OperatingSystemSimulatedNetworkSubsystem.h:116 Disconnect a device from its currently connected simulated network.
This method attempts to disconnect the specified device from its currently connected simulated network.
Parameters
Section titled “Parameters”TargetDeviceThe device to disconnect from the network.
Returns
Section titled “Returns”True if the disconnection was successful, false otherwise.
References
Section titled “References”ForgetNetwork
Section titled “ForgetNetwork”const
bool ForgetNetwork(UOperatingSystemBaseDevice * TargetDevice, const FOperatingSystemSimulatedNetwork & NetworkToForget) constDefined in OperatingSystemSimulatedNetworkSubsystem.h:128 Forget a previously saved network for a device.
This method attempts to remove a previously saved network from the specified device’s list of saved networks.
Parameters
Section titled “Parameters”-
TargetDeviceThe device to forget the network. -
NetworkToForgetThe network to be forgotten.
Returns
Section titled “Returns”True if the network was successfully forgotten, false otherwise.
References
Section titled “References”DisconnectFromNetworkForgetNetworkIsConnectedToNetworkOnOperatingSystemSimulatedNetworkDeviceDisconnectedOnOperatingSystemSimulatedNetworkDeviceForget
Public Static Methods
Section titled “Public Static Methods”| Return | Name | Description |
|---|---|---|
UOperatingSystemSimulatedNetworkSubsystem * | Get static | |
bool | IsSameNetwork static | |
bool | IsDeviceConnectedToNetwork static | Check if a device is connected to a simulated network. |
static
static UOperatingSystemSimulatedNetworkSubsystem * Get(const UObject * WorldContextObject)Defined in OperatingSystemSimulatedNetworkSubsystem.h:55
Referenced by
Section titled “Referenced by”ActivateConnectToNetworkDeactivateDisconnectFromNetworkInternal_DestroyDeviceInternal_OnNetworkLocationUpdatedInternal_OnNetworkRemovedSetCanConnectToNetworkUpdateAllNetworkLocations
IsSameNetwork
Section titled “IsSameNetwork”static
static bool IsSameNetwork(const FOperatingSystemSimulatedNetwork & A, const FOperatingSystemSimulatedNetwork & B)Defined in OperatingSystemSimulatedNetworkSubsystem.h:62
Section titled “Defined in OperatingSystemSimulatedNetworkSubsystem.h:62”IsDeviceConnectedToNetwork
Section titled “IsDeviceConnectedToNetwork”static
static bool IsDeviceConnectedToNetwork(UOperatingSystemBaseDevice * TargetDevice, FOperatingSystemSimulatedNetwork & OutNetwork)Defined in OperatingSystemSimulatedNetworkSubsystem.h:140 Check if a device is connected to a simulated network.
This method checks if the specified device is currently connected to a simulated network.
Parameters
Section titled “Parameters”-
TargetDeviceThe device to check for network connection. -
OutNetworkThe network the device is connected to, if any.
Returns
Section titled “Returns”True if the device is connected to a network, false otherwise.
References
Section titled “References”Private Attributes
Section titled “Private Attributes”| Return | Name | Description |
|---|---|---|
TSet< FOperatingSystemSimulatedNetworkProxy > | SimulatedNetworks | |
TArray< FOperatingSystemSimulatedNetwork > | Networks |
SimulatedNetworks
Section titled “SimulatedNetworks”TSet< FOperatingSystemSimulatedNetworkProxy > SimulatedNetworksDefined in OperatingSystemSimulatedNetworkSubsystem.h:24
Referenced by
Section titled “Referenced by”Networks
Section titled “Networks”TArray< FOperatingSystemSimulatedNetwork > NetworksDefined in OperatingSystemSimulatedNetworkSubsystem.h:27