Facepunch.Steamworks Wiki

Steamworks.SteamNetworking.ReadP2PPacket

Syntax

static Data.P2Packet? ReadP2PPacket( int channel = 0 )

Description

Reads in a packet that has been sent from another user via SendP2PPacket..

Arguments

int channel 0

Returns

Syntax

static bool ReadP2PPacket( byte[] buffer, uint size, SteamId steamid, int channel = 0 )

Description

Reads in a packet that has been sent from another user via SendP2PPacket..

Arguments

byte[] buffer
uint size
SteamId steamid
int channel 0

Returns

bool

Syntax

static bool ReadP2PPacket( byte* buffer, uint cbuf, uint size, SteamId steamid, int channel = 0 )

Description

Reads in a packet that has been sent from another user via SendP2PPacket..

Arguments

byte* buffer
uint cbuf
uint size
SteamId steamid
int channel 0

Returns

bool