Previous
Slide 19 of 27
Slide 19
- Receiving messages uses the WAITPKT() function to pause the script until a packet arrives, which is then retrieved with the GETPKT() function. This is then checked to make sure it's not null, and the message is then extracted from the packet with GETARG()
- The CALL keyword is used to execute a function without requiring a return value.
- A valid packet should always be replied to, otherwise the sending task may be frozen, waiting on a reply that never comes.
Next