Enum NetworkStreamDisconnectReason
Namespace: Unity.NetCode
Syntax
public enum NetworkStreamDisconnectReason
Remarks
Maps directly to DisconnectReason, with NetCode specific additions.
Fields
Name | Description | Value |
---|---|---|
ConnectionClose | 0 | |
Timeout | 1 | |
MaxConnectionAttempts | 2 | |
ClosedByRemote | 3 | |
BadProtocolVersion | NetCode-specific: Denotes that we've detected an unknown or unexpected ghost hash, implying that this is an incompatible server/client pair. |
4 |
InvalidRpc | NetCode-specific: Denotes that we've detected a hash miss-match in an RPC, or an unknown RPC. Implies that this is an incompatible server/client pair. |
5 |