UDP protocol info?

The Growl forums have moved to Google Groups, this forum is read only.
Locked
fbitterlich
Harmless
Posts: 4
Joined: Thu Sep 01, 2005 11:43 am
Location: Frankfurt, DE

UDP protocol info?

Post 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+++
User avatar
ofri
Growl Team
Posts: 303
Joined: Sat Dec 04, 2004 12:00 pm
Location: Kiryat Ono, Israel
Contact:

Post 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
Gravitation is not responsible for people falling in love.
--Albert Einstein

http://www.dpompa.com
User avatar
The_Tick
Cocoaforge Admin
Posts: 4642
Joined: Thu Dec 02, 2004 6:06 am
Contact:

Post 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.
fbitterlich
Harmless
Posts: 4
Joined: Thu Sep 01, 2005 11:43 am
Location: Frankfurt, DE

Post 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.
ofri wrote: 2) Here are Growl's protocol specs - http://trac.growl.info/documentation/de ... otocol.php
Thanks, that's what I was looking for!

Cheers,
Frank+++
User avatar
The_Tick
Cocoaforge Admin
Posts: 4642
Joined: Thu Dec 02, 2004 6:06 am
Contact:

Post by The_Tick »

I'd really suggest not depending on udp.
fbitterlich
Harmless
Posts: 4
Joined: Thu Sep 01, 2005 11:43 am
Location: Frankfurt, DE

Post 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?
User avatar
The_Tick
Cocoaforge Admin
Posts: 4642
Joined: Thu Dec 02, 2004 6:06 am
Contact:

Post 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.
fbitterlich
Harmless
Posts: 4
Joined: Thu Sep 01, 2005 11:43 am
Location: Frankfurt, DE

Post 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.
Locked