Data Structures | |
struct | DBusServerSocket |
Implementation details of DBusServerSocket. More... | |
Typedefs | |
typedef DBusServerSocket | DBusServerSocket |
Opaque object representing a Socket server implementation. | |
Functions | |
DBusServer * | _dbus_server_new_for_socket (int *fds, int n_fds, const DBusString *address) |
Creates a new server listening on the given file descriptor. | |
DBusServer * | _dbus_server_new_for_tcp_socket (const char *host, const char *bind, const char *port, const char *family, DBusError *error) |
Creates a new server listening on TCP. | |
DBusServerListenResult | _dbus_server_listen_socket (DBusAddressEntry *entry, DBusServer **server_p, DBusError *error) |
Tries to interpret the address entry for various socket-related addresses (well, currently only tcp). | |
void | _dbus_server_socket_own_filename (DBusServer *server, char *filename) |
This is a bad hack since it's really unix domain socket specific. |
|
Tries to interpret the address entry for various socket-related addresses (well, currently only tcp). Sets error if the result is not OK.
Definition at line 476 of file dbus-server-socket.c. References _dbus_server_new_for_tcp_socket(), dbus_address_entry_get_method(), dbus_address_entry_get_value(), and NULL. |
|
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.
Definition at line 266 of file dbus-server-socket.c. References _dbus_watch_new(), dbus_new, dbus_new0, fds, n_fds, NULL, TRUE, and watch. Referenced by _dbus_server_new_for_domain_socket(), and _dbus_server_new_for_tcp_socket(). |
|
Creates a new server listening on TCP. If host is NULL, it will default to localhost. If bind is NULL, it will default to the value for the host parameter, and if that is NULL, then localhost If bind is a hostname, it will be resolved and will listen on all returned addresses. If family is NULL, hostname resolution will try all address families, otherwise it can be ipv4 or ipv6 to restrict the addresses considered.
Definition at line 369 of file dbus-server-socket.c. References _dbus_address_append_escaped(), _dbus_close_socket(), _dbus_fd_set_close_on_exec(), _dbus_listen_tcp_socket(), _dbus_server_new_for_socket(), _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_socket(). |
|
This is a bad hack since it's really unix domain socket specific. Also, the function weirdly adopts ownership of the passed-in string.
Definition at line 529 of file dbus-server-socket.c. References socket_name. Referenced by _dbus_server_new_for_domain_socket(). |