Namespace: Steamworks

Lua
C++
Edit

SendPacket

This function sends a packet of data to another user who is in the same lobby.

Syntax

Parameter Description
userid user ID to send the data to
data data to send
channel packet channel to use
size size of data to send
sendtype can be P2PSEND_UNRELIABLE, P2PSEND_UNRELIABLENODELAY, P2PSEND_RELIABLE, or P2PSEND_RELIABLEBUFFERED

Returns

Returns true of the packet was successfully sent. (This does not necessarily mean the packet was successfully received.)

Copyright © 2006-2025 Leadwerks Software.
All rights reserved.
Leadwerks 4 Documentation