[Libpqxx-general] asyncconnection
Arliones Hoeller Jr
arliones.hoeller at suntech.com.br
Mon Sep 3 18:35:09 UTC 2007
Hi there,
I'm trying to use a asyncconnection to have my client application notified
when some tables on my DB change. In order to do it, I created a trigger on
the DB that runs "NOTIFY signal", and I run "LISTEN signal" on my client.
Once I want to run the "listen command" as soon as the connection is
stabilished, I specialized the asyncconnection::do_completeconnect method to
run the listen command. Is this correct? Is this the correct semantics of
the asyncconnection::do_completeconnect method (i.e., this method is run
when the connection is stabilished)?
Another doubt I have regards what happens if the connection is lost. Does
libpqxx reconnects to the DB by itself? Does it runs
asyncconnection::do_completeconnect again when this connection is
re-stabilished?
I didn't find answers for these questions on the online documentation. If
these issues are described there, I would appreciate if someone could
provide me with correct links.
Thank you.
--
Arliones Hoeller Jr
Suntech Intelligent Solutions
arliones.hoeller at suntech.com.br
More information about the Libpqxx-general
mailing list