Main Page | Modules | Data Structures | Directories | File List | Data Fields | Related Pages

DBusServer implementations for UNIX
[D-BUS internal implementation details]

Implementation details of DBusServer on UNIX. More...

Data Structures

struct  DBusServerUnix
 Implementation details of DBusServerUnix. More...

Typedefs

typedef DBusServerUnix DBusServerUnix
 Opaque object representing a Unix server implementation.

Functions

DBusServer_dbus_server_new_for_fd (int fd, const DBusString *address)
 Creates a new server listening on the given file descriptor.
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.
DBusServer_dbus_server_new_for_tcp_socket (const char *host, dbus_uint32_t port, DBusError *error)
 Creates a new server listening on the given hostname and port.

Detailed Description

Implementation details of DBusServer on UNIX.


Function Documentation

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:
path the path for the domain socket.
abstract TRUE to use abstract socket namespace
error location to store reason for failure.
Returns:
the new server, or NULL on failure.

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

References _dbus_close(), _dbus_fd_set_close_on_exec(), _dbus_listen_unix_socket(), _dbus_server_new_for_fd(), _dbus_strdup(), _dbus_string_append(), _dbus_string_free(), _dbus_string_init(), dbus_free(), dbus_set_error(), NULL, and socket_name.

Referenced by dbus_server_listen().

DBusServer* _dbus_server_new_for_fd int  fd,
const DBusString address
 

Creates a new server listening on the given file descriptor.

The file descriptor should be nonblocking (use _dbus_set_fd_nonblocking() to make it so). The file descriptor should be listening for connections, that is, listen() should have been successfully invoked on it. The server will use accept() to accept new client connections.

Parameters:
fd the file descriptor.
address the server's address
Returns:
the new server, or NULL if no memory.

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

References _dbus_server_add_watch(), _dbus_server_finalize_base(), _dbus_server_init_base(), _dbus_watch_new(), _dbus_watch_unref(), base, dbus_free(), dbus_new0, FALSE, fd, DBusServer::have_server_lock, NULL, TRUE, and watch.

Referenced by _dbus_server_new_for_domain_socket(), and _dbus_server_new_for_tcp_socket().

DBusServer* _dbus_server_new_for_tcp_socket const char *  host,
dbus_uint32_t  port,
DBusError error
 

Creates a new server listening on the given hostname and port.

If the hostname is NULL, listens on localhost.

Parameters:
host the hostname to listen on.
port the port to listen on.
error location to store reason for failure.
Returns:
the new server, or NULL on failure.

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

References _dbus_fd_set_close_on_exec(), _dbus_listen_tcp_socket(), _dbus_server_new_for_fd(), _dbus_string_append(), _dbus_string_append_int(), _dbus_string_free(), _dbus_string_init(), dbus_set_error(), and NULL.

Referenced by dbus_server_listen().


Generated on Mon Apr 4 04:40:48 2005 for D-BUS by  doxygen 1.4.0