Class P2PSessionRequestEventArgs
- Namespace
- SteamNetworkLib.Events
- Assembly
- SteamNetworkLib.dll
Provides data for the P2P session request event. Contains information about an incoming P2P session request and allows controlling the response.
public class P2PSessionRequestEventArgs : EventArgs
- Inheritance
-
P2PSessionRequestEventArgs
- Inherited Members
Constructors
P2PSessionRequestEventArgs(CSteamID, string)
Initializes a new instance of the P2PSessionRequestEventArgs class.
public P2PSessionRequestEventArgs(CSteamID requesterId, string requesterName)
Parameters
requesterId
CSteamIDThe Steam ID of the player requesting the P2P session.
requesterName
stringThe display name of the player requesting the P2P session.
Properties
RequesterId
Gets the Steam ID of the player requesting the P2P session.
public CSteamID RequesterId { get; }
Property Value
- CSteamID
RequesterName
Gets the display name of the player requesting the P2P session.
public string RequesterName { get; }
Property Value
ShouldAccept
Gets or sets whether the P2P session request should be accepted. Defaults to true.
public bool ShouldAccept { get; set; }