Navigation
API > API/Runtime > API/Runtime/IrisCore
A UNetBlobHandler is responsible for creating and processing a single type of NetBlob. If the handler should be able to receive blobs it needs to be configured in UNetBlobHandlerDefinitions and registered to the UReplicationSystem on both the sending and receiving side.
Certain handlers such as NetRPCHandler, PartialNetObjectAttachmentHandler and NetObjectBlobHandler will be registered automatically.
| Name | UNetBlobHandler |
| Type | class |
| Header File | /Engine/Source/Runtime/Net/Iris/Public/Iris/ReplicationSystem/NetBlob/NetBlobHandler.h |
| Include Path | #include "Iris/ReplicationSystem/NetBlob/NetBlobHandler.h" |
Syntax
UCLASS (Transient, MinimalAPI, Abstract)
class UNetBlobHandler :
public UObject ,
public INetBlobReceiver
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UNetBlobHandler
Implements Interfaces
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UNetBlobHandler() |
Iris/ReplicationSystem/NetBlob/NetBlobHandler.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~UNetBlobHandler() |
Iris/ReplicationSystem/NetBlob/NetBlobHandler.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| NetBlobType | UE::Net::FNetBlobType | The type is assigned by the FNetBlobHandlerManager when the handler is created. | Iris/ReplicationSystem/NetBlob/NetBlobHandler.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddConnection
(
uint32 ConnectionId |
Called when a connection is added. For handler specific connection handling. | Iris/ReplicationSystem/NetBlob/NetBlobHandler.h | |
TRefCountPtr< FNetBlob > CreateNetBlob
(
UE::Net::ENetBlobFlags Flags |
Create a blob that the handler can process. Forwards to the virtual CreateNetBlob. | Iris/ReplicationSystem/NetBlob/NetBlobHandler.h | |
UE::Net::FNetBlobType GetNetBlobType() |
Get the net blob type. The blob type is determined at runtime and can differ from run to run. | Iris/ReplicationSystem/NetBlob/NetBlobHandler.h | |
virtual void RemoveConnection
(
uint32 ConnectionId |
Called when a connection is removed. For handler specific connection handling. | Iris/ReplicationSystem/NetBlob/NetBlobHandler.h |
Protected
See Also
- UReplicationSystem::RegisterNetBlobHandler