Table of Contents

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 P2PMessage

The deserialized message that was received.

senderId CSteamID

The Steam ID of the player who sent the message.

channel int

The 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

int

Message

Gets the deserialized message that was received.

public P2PMessage Message { get; }

Property Value

P2PMessage

ReceivedAt

Gets the timestamp when the message was received.

public DateTime ReceivedAt { get; }

Property Value

DateTime

SenderId

Gets the Steam ID of the player who sent the message.

public CSteamID SenderId { get; }

Property Value

CSteamID