Namespace: Steamworks
This function retrieves the next available packet sent by another user.
| Parameter | Description |
|---|---|
| channel | channel ID |
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.
The data buffer for each packet should be evaluated immediately, as this buffer may be reused in the next packet returned.