Marshaling examples - PHP binding "status report"

@4u fd4u at vplace.de
Sun Feb 17 09:48:23 PST 2008


Hi,

Ok - I found it out myself so far.

Status report:
D-BUS PHP Binding:
- CAN send selected messages (type implementation not complete yet)
- CAN'T interpret data read
- CAN'T handle external callback logic for signals, method responses etc.

That's what I think the PHP binding should do:
- should allow developers to "register" functions or class methods as
callbacks
- should send valid messages of any type:
 - synchron: wait's until a timeout occur for the response (parses
all messages that are received in the mean time and do callbacks)
 - asynchron: sends the message and:
  - calls a callback if the answer has been received
  - ignores responses silently if no callbacks exist
- their is no thread or "main loop" support, that means a developer has
to "ask" for responses regularly until it arrived
- if a message has been read completely all callbacks are handled until
the next message will be read.

Have a nice rest of the weekend
Tobias

PS.: The current code is available at:
http://phpwe.cvs.sourceforge.net/phpwe/sWG_complete/socketdbus/system/classes/ext_dbus/

@4u schrieb:
> Hi,
> 
> I can't figure out what's wrong here.
> 
>   l   1   0   1 %00 %00 %00 %00
> %01 %00 %00 %00 %04 %00 %00 %00
>   1 %01   o %00 %15 %00 %00 %00
> /org/freedesktop/DBus %00 %00 %00
>   2 %01   s %00 %14 %00 %00 %00
> org.freedesktop.DBus %00 %00 %00 %00
>   3 %01   s %00 %05 %00 %00 %00 Hello %00 %00 %00
>   6 %01   s %00 %14 %00 %00 %00
> org.freedesktop.DBus %00 %00 %00 %00
> 
> All structures begin at an 8 byte boundary and the values are as
> specified. But something must be wrong - but I can't see what exactly?!
> 
> D-BUS disconnects (at least I get an EOF).
> 
> Thanks for your help
> 


More information about the dbus mailing list