Reply half-received ?

yohann (yrc) coppel varyoh at gmail.com
Thu Oct 27 08:43:24 PDT 2005


Hi!

Ok, now i'm using ubuntu.. very nice :-)

But my problem still exist :-( the version is:
$ dbus-daemon --version
D-BUS Message Bus Daemon 0.36.2

(so, not exactly the last one...)

I attach the two files: dbus_server.c and dbus_client.c
All dbus operations are in theses two files.
The client function that call for the song is send_get_current_song line
106 in dbus_client.c

And the one of the server who try to answer is
handle_get_current_song(DBusMessage *message) line 151 of dbus_server.c

There may be something that I don't understand... i don't know why this
happens...

Just to remember:
execution of the server:
unknown message received: NameAcquired
unknown message received: NameAcquired
get_current_song
Hey... Here is a job for me! reply sent: Hello World

and the client:
>>> (null)

Thanks a lot for all this help!

Yohann.

P.S. I realy sent 4 times the same message, or is-it my evolution who
becomes crazy ???

Le mercredi 26 octobre 2005 à 10:11 -0400, Havoc Pennington a écrit :
> On Wed, 2005-10-26 at 00:40 -0500, yrc wrote:
> > 
> > unknown message received: ServiceAcquired
> 
> Is this an old version of dbus? Should be NameAcquired instead.
> 
> In older versions plain "v_STRING" was correct, not "&v_STRING"
> 
> > unknown message received: Disconnected
> 
> Disconnect happens if a message is invalid for some reason. If you turn
> on DBUS_VERBOSE=1 then you can probably diagnose why it was invalid.
> Possible reasons are missing mandatory fields or invalid encoding in
> strings, for example.
> 
> Recent versions are more likely to print warnings about invalid things
> on the side that's trying to send the invalid message, because we added
> more checks.
> 
> Havoc
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbus_server.c
Type: text/x-csrc
Size: 4336 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20051027/e60377b7/dbus_server.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbus_client.c
Type: text/x-csrc
Size: 3208 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20051027/e60377b7/dbus_client.c


More information about the dbus mailing list