Table of Contents

Class P2PPacketSentEventArgs

Namespace
SteamNetworkLib.Events
Assembly
SteamNetworkLib.dll

Provides data for the P2P packet sent event. Contains information about the result of sending a P2P packet.

public class P2PPacketSentEventArgs : EventArgs
Inheritance
P2PPacketSentEventArgs
Inherited Members

Constructors

P2PPacketSentEventArgs(CSteamID, bool, int, int, EP2PSend)

Initializes a new instance of the P2PPacketSentEventArgs class.

public P2PPacketSentEventArgs(CSteamID targetId, bool success, int dataSize, int channel, EP2PSend sendType)

Parameters

targetId CSteamID

The Steam ID of the target player the packet was sent to.

success bool

Whether the packet was sent successfully.

dataSize int

The size of the data that was sent in bytes.

channel int

The communication channel on which the packet was sent.

sendType EP2PSend

The send type used for the packet transmission.

Properties

Channel

Gets the communication channel on which the packet was sent.

public int Channel { get; }

Property Value

int

DataSize

Gets the size of the data that was sent in bytes.

public int DataSize { get; }

Property Value

int

SendType

Gets the send type used for the packet transmission.

public EP2PSend SendType { get; }

Property Value

EP2PSend

Success

Gets whether the packet was sent successfully.

public bool Success { get; }

Property Value

bool

TargetId

Gets the Steam ID of the target player the packet was sent to.

public CSteamID TargetId { get; }

Property Value

CSteamID