Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Engine
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UChannel
- UActorChannel
- UUnitTestActorChannel
- UControlChannel
- UUnitTestChannel
- UVoiceChannel
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Engine/Channel.h |
| Include | #include "Engine/Channel.h" |
Syntax
class UChannel : public UObject
Remarks
Base class of communication channels.
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32: 1 | bIsInDormancyHysteresis | ||
| uint32: 1 | bOpenedForCheckpoint | ||
| uint32: 1 | bPausedUntilReliableACK | ||
| uint32: 1 | bPendingDormancy | ||
| uint32: 1 | bPooled | ||
| uint32: 1 | Broken | ||
| uint32: 1 | bTornOff | ||
| int32 | ChIndex | ||
| FName | ChName | ||
| uint32: 1 | Closing | ||
| TObjectPtr< class UNetConnection > | Connection | ||
| uint32: 1 | Dormant | ||
| FInBunch * | InPartialBunch | ||
| FInBunch * | InRec | ||
| int32 | NumInRec | ||
| int32 | NumOutRec | ||
| uint32: 1 | OpenAcked | Variables. | |
| uint32: 1 | OpenedLocally | ||
| FPacketIdRange | OpenPacketId | ||
| uint32: 1 | OpenTemporary | ||
| FOutBunch * | OutRec | ||
| uint32: 1 | SentClosingBunch |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Notification that this channel has been placed in a channel pool and needs to reset to its original state so it can be used again like a new channel | ||
| void | AppendExportBunches
(
TArray< FOutBunch* >& OutExportBunches |
Append any export bunches | |
| void | AppendMustBeMappedGuids
(
FOutBunch* Bunch |
Append any "must be mapped" guids to front of bunch. | |
| void | Make sure the incoming buffer is in sequence and there are no duplicates. | ||
| void | Closes the actor channel but with a 'dormant' flag set so it can be reopened | ||
| bool | Return true to indicate that this channel no longer needs to Tick() every frame. | ||
| bool | CleanUp
(
const bool bForDestroy, |
Cleans up channel structures and nulls references to the channel | |
| int64 | Close
(
EChannelCloseReason Reason |
Close the base channel. Returns how many bits were written to the send buffer | |
| void | ConditionalCleanUp
(
const bool bForDestroy, |
Cleans up channel if it hasn't already been | |
| FString | Describe () |
Describe the channel. | |
| void | Init
(
UNetConnection* InConnection, |
UChannel interface. | |
| int32 | IsNetReady
(
bool Saturate |
Return whether this channel is ready for sending. | |
| bool | ReadyForDormancy
(
bool suppressLogs |
Returns true if channel is ready to go dormant (e.g., all outstanding property updates have been ACK'd) | |
| void | ReceivedAck
(
int32 AckPacketId |
Positive acknowledgment processing. | |
| void | ReceivedAcks () |
Handle an acknowledgment on this channel. Note: Channel might be closed/cleaned-up by this call. | |
| bool | ReceivedAcks
(
EChannelCloseReason& OutCloseReason |
General channel functions. | |
| void | ReceivedBunch
(
FInBunch& Bunch |
Handle an incoming bunch. | |
| void | ReceivedNak
(
int32 NakPacketId |
Negative acknowledgment processing. | |
| void | ReceivedRawBunch
(
FInBunch& Bunch, |
Process a raw, possibly out-of-sequence bunch: either queue it or dispatch it. | |
| bool | ReceivedSequencedBunch
(
FInBunch& Bunch |
Process a properly-sequenced bunch. | |
| FPacketIdRange | Send a bunch if it's not overflowed, and queue it if it's reliable. | ||
| void | Set the closing flag. | ||
| void | Puts the channel in a state to start becoming dormant. | ||
| void | Tick () |
Handle time passing on this channel. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. | |
| void | Handles reading, writing, and reference collecting using FArchive. |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32: 1 | bIsReplicationPaused | Replication pausing is deprecated and will be removed |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Replication pausing is deprecated and will be removed | ||
| void | Will be removed from test/shipping in the future. | ||
| void | SetReplicationPaused
(
bool InbIsReplicationPaused |
Replication pausing is deprecated and will be removed |