waiting for dbus_bus_request_name

Michael K vk2bea at yahoo.com
Sat May 20 19:30:46 PDT 2006


I get a return value of 2 ==>
DBUS_REQUEST_NAME_REPLY_IN_QUEUE

If I don't use this in the sending program my
receiving program doesn't get the messages.

the receiving program looks like....

#ifdef DBUS                      
  dbus_g_thread_init();
  
  if ( !(bus = dbus_g_bus_get (DBUS_BUS_SYSTEM,
&error)) ) {
  	g_printerr("Error: %s\n", error->message );
  	g_error_free (error);
  }
     
   
  if( !(remote_object = dbus_g_proxy_new_for_name
(bus,
					     GUTENBERG_DBUS_NAME,
					     GUTENBERG_DBUS_OBJECT_NAME,
					     GUTENBERG_DBUS_OBJECT_INTERFACE )) ){
  	g_printerr("Error: %s\n", error->message );
  	g_error_free (error);
  }
   
  dbus_g_proxy_add_signal (remote_object,
GUTENBERG_DBUS_SIGNAL_NAME, G_TYPE_STRING,
G_TYPE_INVALID);

 
  dbus_g_proxy_connect_signal (remote_object,
GUTENBERG_DBUS_SIGNAL_NAME, G_CALLBACK
(USB_MSD_connection_signal_handler),
			       NULL, NULL);


--- Havoc Pennington <hp at redhat.com> wrote:

> 
> 
> Michael K wrote:
> >
> > In the sending program dbus_bus_request_name()
> does
> > not always succeed. 
> 
> What error do you get?
> 
> It's a bit odd you have request_name in the
> _calling_ program, normally 
> that is in the _receiving_ program.
> 
> Havoc
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the dbus mailing list