simple sever

Edgard Lima edgard.lima at gmail.com
Thu Jan 9 05:48:40 PST 2014


Hi Folks,

I need to write a service that receive message calls (and reply) in one
thread,
and send broadcast signals in another thread.

I'm using libdbus directly.

Right now I'm trying the following approach:

1- In receiving (and reply) method thread
    dbus_connection_read_write(_connection, 0);
  dbus_msg = dbus_connection_pop_message(_connection);

2- In broadcasting signal
    dbus_message_new_signal
    dbus_connection_send

Is that right, it it thread safe? (operating in same connection across
threads)

Is there a "hello world" for that?

Best Regards,
Edgard

-- 
Edgard Lima
http://EdgardLima.com
http://www.linkedin.com/in/edgardlima
edgard.lima at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20140109/3729f209/attachment.html>


More information about the dbus mailing list