Class P2PMessageReceivedEventArgs
- Namespace
- SteamNetworkLib.Events
- Assembly
- SteamNetworkLib.dll
Provides data for the P2P message received event. Contains deserialized message data and metadata about the received message.
public class P2PMessageReceivedEventArgs : EventArgs
- Inheritance
-
P2PMessageReceivedEventArgs
- Inherited Members
Constructors
P2PMessageReceivedEventArgs(P2PMessage, CSteamID, int)
Initializes a new instance of the P2PMessageReceivedEventArgs class.
public P2PMessageReceivedEventArgs(P2PMessage message, CSteamID senderId, int channel)
Parameters
message
P2PMessageThe deserialized message that was received.
senderId
CSteamIDThe Steam ID of the player who sent the message.
channel
intThe communication channel on which the message was received.
Properties
Channel
Gets the communication channel on which the message was received.
public int Channel { get; }
Property Value
Message
Gets the deserialized message that was received.
public P2PMessage Message { get; }
Property Value
ReceivedAt
Gets the timestamp when the message was received.
public DateTime ReceivedAt { get; }
Property Value
SenderId
Gets the Steam ID of the player who sent the message.
public CSteamID SenderId { get; }
Property Value
- CSteamID