summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-server-unix.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-01-19 05:14:46 +0000
committerHavoc Pennington <hp@redhat.com>2003-01-19 05:14:46 +0000
commit14cc2707a0318381b5cc68588efc36f61d617b78 (patch)
treeb15d245ad5ff5b650b72ed1aaeda1ed3bcefac30 /dbus/dbus-server-unix.c
parent502fbda2201a4e7e50d687f42af29c82e66299bb (diff)
2003-01-19 Havoc Pennington <hp@pobox.com>
* dbus/dbus-connection.c (dbus_connection_get_is_authenticated): new function * dbus/dbus-server.c (dbus_server_set_max_connections) (dbus_server_get_max_connections, dbus_server_get_n_connections): keep track of current number of connections, and add API for setting a max (but haven't implemented enforcing the max yet)
Diffstat (limited to 'dbus/dbus-server-unix.c')
-rw-r--r--dbus/dbus-server-unix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dbus/dbus-server-unix.c b/dbus/dbus-server-unix.c
index c9a494e7..23bbdab3 100644
--- a/dbus/dbus-server-unix.c
+++ b/dbus/dbus-server-unix.c
@@ -94,6 +94,9 @@ handle_new_client_fd (DBusServer *server,
if (connection == NULL)
return;
+ _dbus_connection_set_connection_counter (connection,
+ server->connection_counter);
+
/* See if someone wants to handle this new connection,
* self-referencing for paranoia
*/