On Oct 4, 12:27 pm, Josh Johnston <[EMAIL PROTECTED]> wrote:
> > It looks right, but you should make sure you're sending this flags  
> > value in network byte order. Otherwise, the bits are in the high byte,  
> > while Growl is looking for them in the low byte. If your low byte is  
> > clear (0x00), that's why Growl acts as if you haven't set the flags.
>
> I ended up changing the code to:
>
> priority = (flags & 7 << 1) | (bool) sticky; // bool works correctly
> as one bit in php
>
> I was playing around with it a little bit after posting last night and
> dumping the output as hex and I was definitely sending 0101 for
> Highest Priority + sticky but no luck. I tried the growlnotify.php
> script from Tao of Mac and it didn't work either. I swear I remember
> it working before. I'll check out the logging and worst case I'll just
> hack the UDP classes in the growl source and add in logging myself.
>
> Thanks for the reply.

In addition the start of the notification packet is:

00000001000000010000000000000101 . . .

GROWL_PROTOCOL_VERSION + GROWL_TYPE_NOTIFICATION + 010 (high priority)
+ 1 (sticky)

Per: http://growl.info/documentation/developer/img/udp.jpg
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Growl Discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/growldiscuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to