DBusServer accepted client close

Andy Green <andy-/[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <[email protected]>
Hi -

I have a server using DBusServer, and the necessary Watch and Timeout 
adaptations to work with a different event loop.

I can connect to the server over an abstract unix domain socket, it will 
"accept" a new connection and I can deal with the messages there, which 
is all good.

However, I am at a loss to understand when the accepted server 
connection is closing.  I know when it is created / accepted, because 
there's a callback for that.  A struct should be associated with the 
connection then.

But the other callbacks seem related to lifecycle of Watch and Timeout, 
which is lower-level than the end of the accepted DBusConnection.  When 
I create the connection using eg gdbus, stuff that I allocate that I 
want to associate with the connection, has no obvious event on which it 
can be deallocated because the connection has ended.  The "connection" 
lifetime ends when gdbus is exiting, just like I can observer the 
connection lifetime started when gdbus started, does it?  How can I feel 
that in my DBusServer-based server?

Did I miss the point somewhere?  Am I looking at this the wrong way somehow?

Thanks for any advice.

-Andy
_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.