PDA

View Full Version : Synchronous Sky message callback


notreallyunique
08-15-2005, 07:38 AM
First of all, Sky rocks.

Second, I have a mod that doesn't need an event loop outside of handling a few Sky messages. Because of this I'd like to move my message handling inside of the acceptTest and ditch my own loop.

Is this safe? Is it ugly? I'm worried that I might cause messages to drop for the duration I'm working inside that handler. My messages are small and come at a slow rate, but reliability is important to me. I guess this question is more about WoW events than Sky itself.

Also whle I'm typing, what's the best way to get whoever patches for Sky?

KarlKFI
08-15-2005, 05:35 PM
I handle most of the Sky updates now. Feel free to use the acceptTest to manage recieving of messages if they aren't frequent. The main reason the mailbox system was implimentted was to handle large quantities of messages and process them at the same time. It's just a flexible system so that you don't have to manage message storage yourself. If acceptTest handling works for you and you return nil/false then the message wont be stored in the mailbox.