Facepunch.Steamworks Wiki

Steamworks.SteamNetworking.SendP2PPacket

Syntax

static bool SendP2PPacket( SteamId steamid, byte[] data, int length = -1, int nChannel = 0, P2PSend sendType = Reliable )

Description

Sends a P2P packet to the specified user. This is a session-less API which automatically establishes NAT-traversing or Steam relay server connections. NOTE: The first packet send may be delayed as the NAT-traversal code runs.

Arguments

SteamId steamid
byte[] data
int length -1
int nChannel 0
P2PSend sendType Reliable

Returns

bool

Syntax

static bool SendP2PPacket( SteamId steamid, byte* data, uint length, int nChannel = 1, P2PSend sendType = Reliable )

Description

Sends a P2P packet to the specified user. This is a session-less API which automatically establishes NAT-traversing or Steam relay server connections. NOTE: The first packet send may be delayed as the NAT-traversal code runs.

Arguments

SteamId steamid
byte* data
uint length
int nChannel 1
P2PSend sendType Reliable

Returns

bool

Page Links


Special Pages


Wikis

?

Render Time: 73ms

DB GetPage 49
Generate Html 2
SaveChanges (1) 17
Render Body 0
Render Sidebar 2