Main Page   Modules   Data Structures   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. 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...

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


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 274 of file dbus-server-unix.c.

References socket_name.

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 221 of file dbus-server-unix.c.

References base, fd, and watch.

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 352 of file dbus-server-unix.c.


Generated on Wed Jun 9 05:01:28 2004 for D-BUS by doxygen1.2.15