|
D-Bus
1.12.16
|
Implementation details of DBusServer on UNIX. More...
Functions | |
| DBusServerListenResult | _dbus_server_listen_platform_specific (DBusAddressEntry *entry, DBusServer **server_p, DBusError *error) |
| Tries to interpret the address entry in a platform-specific way, creating a platform-specific server type if appropriate. More... | |
| DBusServer * | _dbus_server_new_for_domain_socket (const char *path, dbus_bool_t abstract, DBusError *error) |
| Creates a new server listening on the given Unix domain socket. More... | |
Implementation details of DBusServer on UNIX.
| DBusServerListenResult _dbus_server_listen_platform_specific | ( | DBusAddressEntry * | entry, |
| DBusServer ** | server_p, | ||
| DBusError * | error | ||
| ) |
Tries to interpret the address entry in a platform-specific way, creating a platform-specific server type if appropriate.
Sets error if the result is not OK.
| entry | an address entry |
| server_p | location to store a new DBusServer, or NULL on failure. |
| error | location to store rationale for failure on bad address |
Definition at line 54 of file dbus-server-unix.c.
References _dbus_append_address_from_socket(), _dbus_close_socket(), _dbus_concat_dir_and_file(), _dbus_generate_random_ascii(), _dbus_getenv(), _dbus_listen_systemd_sockets(), _dbus_server_new_for_domain_socket(), _dbus_server_new_for_launchd(), _dbus_server_new_for_socket(), _dbus_set_bad_address(), _dbus_string_append(), _dbus_string_free(), _dbus_string_init(), _dbus_string_init_const(), dbus_address_entry_get_method(), dbus_address_entry_get_value(), DBUS_ERROR_NO_MEMORY, DBUS_ERROR_NOT_SUPPORTED, dbus_free(), dbus_set_error(), FALSE, NULL, and TRUE.
| DBusServer* _dbus_server_new_for_domain_socket | ( | const char * | path, |
| dbus_bool_t | abstract, | ||
| DBusError * | error | ||
| ) |
Creates a new server listening on the given Unix domain socket.
| path | the path for the domain socket. |
| abstract | TRUE to use abstract socket namespace |
| error | location to store reason for failure. |
Definition at line 310 of file dbus-server-unix.c.
References _dbus_address_append_escaped(), _dbus_close_socket(), _dbus_listen_unix_socket(), _dbus_server_new_for_socket(), _dbus_server_socket_own_filename(), _dbus_strdup(), _dbus_string_append(), _dbus_string_free(), _dbus_string_init(), _dbus_string_init_const(), DBUS_ERROR_NO_MEMORY, dbus_free(), dbus_set_error(), and NULL.
Referenced by _dbus_server_listen_platform_specific().
1.8.15