// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.P2P { /// /// Reasons why a P2P connection was closed /// public enum ConnectionClosedReason : int { /// /// The connection was closed for unknown reasons /// Unknown = 0, /// /// The connection was gracefully closed by the local user /// ClosedByLocalUser = 1, /// /// The connection was gracefully closed by the remote user /// ClosedByPeer = 2, /// /// The connection timed out /// TimedOut = 3, /// /// The connection could not be created due to too many other connections /// TooManyConnections = 4, /// /// The remote user sent an invalid message /// InvalidMessage = 5, /// /// The remote user sent us invalid data /// InvalidData = 6, /// /// We failed to establish a connection with the remote user /// ConnectionFailed = 7, /// /// The connection was unexpectedly closed /// ConnectionClosed = 8, /// /// We failed to negotiate a connection with the remote user /// NegotiationFailed = 9, /// /// There was an unexpected error and the connection cannot continue /// UnexpectedError = 10 } }