Main Page   Modules   Data Structures   File List   Data Fields   Related Pages  

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

Implementation details of DBusTransport on UNIX. More...

Data Structures

struct  DBusTransportUnix
 Implementation details of DBusTransportUnix. More...


Typedefs

typedef DBusTransportUnix DBusTransportUnix
 Opaque object representing a Unix file descriptor transport.


Functions

DBusTransport_dbus_transport_new_for_fd (int fd, dbus_bool_t server, const DBusString *address)
 Creates a new transport for the given file descriptor. More...

DBusTransport_dbus_transport_new_for_domain_socket (const char *path, dbus_bool_t abstract, DBusError *error)
 Creates a new transport for the given Unix domain socket path. More...

DBusTransport_dbus_transport_new_for_tcp_socket (const char *host, dbus_int32_t port, DBusError *error)
 Creates a new transport for the given hostname and port. More...


Detailed Description

Implementation details of DBusTransport on UNIX.


Function Documentation

DBusTransport* _dbus_transport_new_for_domain_socket const char *    path,
dbus_bool_t    abstract,
DBusError   error
 

Creates a new transport for the given Unix domain socket path.

This creates a client-side of a transport.

Todo:
once we add a way to escape paths in a dbus address, this function needs to do escaping.
Parameters:
path  the path to the domain socket.
abstract  TRUE to use abstract socket namespace
error  address where an error can be returned.
Returns:
a new transport, or NULL on failure.

Definition at line 1035 of file dbus-transport-unix.c.

DBusTransport* _dbus_transport_new_for_fd int    fd,
dbus_bool_t    server,
const DBusString   address
 

Creates a new transport for the given file descriptor.

The file descriptor must be nonblocking (use _dbus_set_fd_nonblocking() to make it so). This function is shared by various transports that boil down to a full duplex file descriptor.

Parameters:
fd  the file descriptor.
server  TRUE if this transport is on the server side of a connection
address  the transport's address
Returns:
the new transport, or NULL if no memory.

Definition at line 965 of file dbus-transport-unix.c.

References base, encoded_incoming, encoded_outgoing, fd, max_bytes_read_per_iteration, max_bytes_written_per_iteration, message_bytes_written, read_watch, and write_watch.

DBusTransport* _dbus_transport_new_for_tcp_socket const char *    host,
dbus_int32_t    port,
DBusError   error
 

Creates a new transport for the given hostname and port.

Parameters:
host  the host to connect to
port  the port to connect to
error  location to store reason for failure.
Returns:
a new transport, or NULL on failure.

Definition at line 1102 of file dbus-transport-unix.c.


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