D-Bus  1.4.10
Functions
DBusServer implementations for UNIX
D-Bus secret internal implementation details

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.
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.

Detailed Description

Implementation details of DBusServer on UNIX.


Function Documentation

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.

Parameters:
entryan address entry
server_plocation to store a new DBusServer, or NULL on failure.
errorlocation to store rationale for failure on bad address
Returns:
the outcome

Definition at line 54 of file dbus-server-unix.c.

References NULL, dbus_address_entry_get_method(), dbus_address_entry_get_value(), _dbus_set_bad_address(), _dbus_string_init(), dbus_set_error(), DBUS_ERROR_NO_MEMORY, _dbus_string_free(), _dbus_string_append(), _dbus_generate_random_ascii(), _dbus_concat_dir_and_file(), _dbus_server_new_for_domain_socket(), _dbus_string_get_const_data(), TRUE, FALSE, _dbus_listen_systemd_sockets(), _dbus_string_init_const(), _dbus_server_new_for_socket(), _dbus_close_socket(), dbus_free(), and _dbus_server_new_for_launchd().

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.

Parameters:
paththe path for the domain socket.
abstractTRUE to use abstract socket namespace
errorlocation to store reason for failure.
Returns:
the new server, or NULL on failure.

Definition at line 225 of file dbus-server-unix.c.

References _dbus_string_init(), dbus_set_error(), DBUS_ERROR_NO_MEMORY, NULL, _dbus_string_init_const(), _dbus_string_append(), _dbus_address_append_escaped(), _dbus_strdup(), _dbus_listen_unix_socket(), _dbus_server_new_for_socket(), _dbus_server_socket_own_filename(), _dbus_string_free(), _dbus_close_socket(), and dbus_free().

Referenced by _dbus_server_listen_platform_specific().