No reply within specified time

Arvind Ayyangar arvind.ayyangar at gmail.com
Thu Nov 2 23:22:32 PST 2006


hi ppl
    i am trying to writea simple client application to connect to a dbus
server..
the code is as below..
#include <stdio.h>
#include <dbus/dbus-glib.h>
#include <stdlib.h>
#define DBUS_SERVICE



int
main()
{
    DBusGConnection *connection;
    DBusGProxy *remote_object;
    GMainLoop *mainloop;
    gchar *path;
    char *nameList1,*nameList2,*nameList3,*nameList4;
    GError *error = NULL;

    g_type_init();
    connection= dbus_g_bus_get (DBUS_BUS_SESSION, &error);
    if (connection == NULL) {
        printf("\nCould not connect..");
        return 1;
    }
    remote_object =dbus_g_proxy_new_for_name(connection,
                "org.freedesktop.Notifications",
                    "/org/freedesktop/Notifications","
org.freedesktop.Notifications");

    printf("\nGot proxy..");
    error = NULL;

if(!dbus_g_proxy_call(remote_object,"GetServerInformation",&error,G_TYPE_STRING,&nameList1,G_TYPE_STRING,&nameList2,G_TYPE_STRING,&nameList3,G_TYPE_STRING,&nameList4,G_TYPE_INVALID,G_TYPE_INVALID)){
        printf ("\nerror..%s\n",error->message);
        return 1;
    }

}


when i run the program, i get an error..
arvind at ARVIND:~/mydev$ ./dbus-test mydev$ ./dbus-test

Got proxy..
error..No reply within specified time


how do i correct it?



-- 
Regards
  ARviND AyyangaR

"Success is not measured by what a man accomplishes, but by the opposition
he has encountered, and the courage with which he maintained the struggle
against overwhelming odds."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20061103/6f725fd9/attachment.html


More information about the dbus mailing list