Table of Contents

Class P2PSessionConnectFailEventArgs

Namespace
SteamNetworkLib.Events
Assembly
SteamNetworkLib.dll

Provides data for the P2P session connect fail event. Contains information about a failed P2P connection attempt.

public class P2PSessionConnectFailEventArgs : EventArgs
Inheritance
P2PSessionConnectFailEventArgs
Inherited Members

Constructors

P2PSessionConnectFailEventArgs(CSteamID, EP2PSessionError)

Initializes a new instance of the P2PSessionConnectFailEventArgs class.

public P2PSessionConnectFailEventArgs(CSteamID targetId, EP2PSessionError error)

Parameters

targetId CSteamID

The Steam ID of the target player that could not be connected to.

error EP2PSessionError

The specific error that occurred during the connection attempt.

Properties

Error

Gets the specific error that occurred during the connection attempt.

public EP2PSessionError Error { get; }

Property Value

EP2PSessionError

TargetId

Gets the Steam ID of the target player that could not be connected to.

public CSteamID TargetId { get; }

Property Value

CSteamID