From 14cc2707a0318381b5cc68588efc36f61d617b78 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sun, 19 Jan 2003 05:14:46 +0000 Subject: 2003-01-19 Havoc Pennington * 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) --- dbus/dbus-server-unix.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dbus/dbus-server-unix.c') 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 */ -- cgit