[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: Need to know client/caller pid on the server side
From:       masala north <masalanorth () yahoo ! com>
Date:       2007-10-29 23:40:35
Message-ID: 895419.40456.qm () web63409 ! mail ! re1 ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Havoc,
  
  Using Unix domain, still have issues with 
  
dbus_connection_get_unix_process_id(). returns -1 for the pid.

Also running debugger is kind of cumbersome since it is an embedded device 
and images are built without debug option so that we can fit
the image on the device.

Thanks
John

  
Havoc Pennington <hp@redhat.com> wrote:  Hi,

masala north wrote:
> How to know which transport I am running. Is this applicable to UNIX 
> DOMAIN? In our case both client and server/daemon is going to be on the 
> same machine. is it possible for us to use DBUS with local IPC instead 
> of TCP?
> 

If you use the message bus, unix sockets are used by default. If you 
create a DBusServer you will have to tell it where to listen when you 
create it, so you should know what you told it.

Havoc



 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
[Attachment #5 (text/html)]

Hi Havoc,<br>  <br>  Using Unix domain, still have issues with <br>  \
<pre>dbus_connection_get_unix_process_id(). returns -1 for the pid.<br><br>Also running debugger is kind \
of cumbersome since it is an embedded device <br>and images are built without debug option so that we can \
fit<br>the image on the device.<br><br>Thanks<br>John<br></pre>  <br><b><i>Havoc Pennington \
&lt;hp@redhat.com&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, \
255); margin-left: 5px; padding-left: 5px;">  Hi,<br><br>masala north wrote:<br>&gt; How to know which \
transport I am running. Is this applicable to UNIX <br>&gt; DOMAIN? In our case both client and \
server/daemon is going to be on the <br>&gt; same machine. is it possible for us to use DBUS with local \
IPC instead <br>&gt; of TCP?<br>&gt; <br><br>If you use the message bus, unix sockets are used by \
default. If you <br>create a DBusServer you will have to tell it where to listen when you <br>create it, \
so  you should know what you told \
it.<br><br>Havoc<br><br></blockquote><br><p>&#32;__________________________________________________<br>Do \
You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com 



_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dbus


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic