Thank you Pavel,<div><br></div><div>What is the benefit of using cached connection?</div><div>For speed?</div><div><br></div><div><div class="gmail_quote">On Thu, Mar 15, 2012 at 3:22 PM, Pavel Strashkin <span dir="ltr"><<a href="mailto:pavel.strashkin@gmail.com">pavel.strashkin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Simon,<br>
<br>
That is not so difficult as it looks like. That is just a cache.<br>
dbus_bus_get either returns cached instance (system or session bus) or<br>
caches it and then returns. dbus_bus_get_private always returns new<br>
instance without any caching.<br>
<br>
2012/3/14 Simon Hong <<a href="mailto:simon.hong81@gmail.com">simon.hong81@gmail.com</a>>:<br>
<div><div class="h5">> Dear folks,<br>
><br>
> What is the meaning of the private in the "dbus_bus_get_private()"?<br>
> In the api (dbus_bus_get()) reference, it said "connection to the bus<br>
> already exists, then that connection is returned".<br>
><br>
> How the connection is already existed??<br>
> I can't understand...<br>
><br>
> Any explanation will be happy.<br>
><br>
> Thank you<br>
> --<br>
> ======================================<br>
> Simon Hong<br>
> "Secret of success is consistency to purpose"<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> dbus mailing list<br>
> <a href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target="_blank">http://lists.freedesktop.org/mailman/listinfo/dbus</a><br>
><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>======================================<div>Simon Hong</div><div>"Secret of success is consistency to purpose"</div><br>
</div>