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
CSteamIDThe Steam ID of the target player the packet was sent to.
success
boolWhether the packet was sent successfully.
dataSize
intThe size of the data that was sent in bytes.
channel
intThe communication channel on which the packet was sent.
sendType
EP2PSendThe 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
DataSize
Gets the size of the data that was sent in bytes.
public int DataSize { get; }
Property Value
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
TargetId
Gets the Steam ID of the target player the packet was sent to.
public CSteamID TargetId { get; }
Property Value
- CSteamID