Namespace: Steamworks

Lua
C++
Edit

GetPacket

This function retrieves the next available packet sent by another user.

Syntax

Parameter Description
channel channel ID

Returns

If a new packet has been received, a Packet object is returned, with the following properties:

Property Type Description
userid uint64 user ID of the sender
channel int channel the packet was received on
data Buffer packet data

If no new packet is available then NULL will be returned.

Remarks

The data buffer for each packet should be evaluated immediately, as this buffer may be reused in the next packet returned.

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