Page 1 of 1
UDP protocol info?
Posted: Thu Sep 01, 2005 11:47 am
by fbitterlich
Hi,
would it be posssible to get a description of the Growl UDP datagram format (when not using DO) somewhere?
Growl seems exceptionally cool, and several REALbasic users are asking for Growl support. Since you can't use DO from REALbasic, I'd like to write a module using UDP...
Thanks for any pointers!
Cheers,
Frank+++
Posted: Thu Sep 01, 2005 1:33 pm
by ofri
1) Growl has REALbasic bindings so you don't have to write it yourself.
2) Here are Growl's protocol specs -
http://trac.growl.info/documentation/de ... otocol.php
Posted: Thu Sep 01, 2005 2:08 pm
by The_Tick
If you don't like the bindings we have, might be easier to talk to applescript than udp. UDP is not guaranteed to be running, whereas applescript is always there.
Or you can talk to cocoa/carbon. You get more functionality that way, but it's not as easy afaik.
Posted: Thu Sep 01, 2005 2:22 pm
by fbitterlich
ofri wrote:1) Growl has REALbasic bindings so you don't have to write it yourself.
Yes, noticed that, but it didn't compile for me. Plus, it's based on AppleScript, and I prefer UDP.
Thanks, that's what I was looking for!
Cheers,
Frank+++
Posted: Thu Sep 01, 2005 2:26 pm
by The_Tick
I'd really suggest not depending on udp.
Posted: Thu Sep 01, 2005 2:31 pm
by fbitterlich
The_Tick wrote:If you don't like the bindings we have, might be easier to talk to applescript than udp. UDP is not guaranteed to be running, whereas applescript is always there.
Can I use the AppleScript interface to post notifications to remote machines on the network as well?
The_Tick wrote:Or you can talk to cocoa/carbon. You get more functionality that way, but it's not as easy afaik.
Could you clarify this? Do you mean to call into a framework/dylib with a "Declare" statement in RB?
Posted: Thu Sep 01, 2005 2:37 pm
by The_Tick
You have to use udp for network notifications.. I was under the impression you were just going to use them for local notifications.
I'm not familiar with rb, but I do know that most languages can wrap most other languages.
Maybe if you told us what error message you were getting with the rb bindings, we could fix that.
Posted: Thu Sep 01, 2005 2:51 pm
by fbitterlich
The_Tick wrote:You have to use udp for network notifications.. I was under the impression you were just going to use them for local notifications.
I'm not familiar with rb, but I do know that most languages can wrap most other languages.
There's no such thing as "inline C" or something in RB. But you can call libraries if you know the exact function names and arguments.
The_Tick wrote:Maybe if you told us what error message you were getting with the rb bindings, we could fix that.
I get a "This method requires fewer parameters than were passed" on both the call to growlNotifyScript and growlRegisterScript. I don't know the reason; 6 parameters are passed to growlNotifyScript and 3 to growlRegisterScript, exactly what the scripts' "On Run" handlers require. But still I get this message.