DBusTransport implementations for sockets
[D-Bus secret internal implementation details]


Data Structures

struct  DBusTransportSocket
 Implementation details of DBusTransportSocket. More...

Typedefs

typedef struct
DBusTransportSocket 
DBusTransportSocket
 Opaque object representing a socket file descriptor transport.

Functions

DBusTransport_dbus_transport_new_for_socket (int fd, const DBusString *server_guid, const DBusString *address)
 Creates a new transport for the given socket file descriptor.
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.
DBusTransportOpenResult _dbus_transport_open_socket (DBusAddressEntry *entry, DBusTransport **transport_p, DBusError *error)
 Opens a TCP socket transport.

Detailed Description

Implementation details of DBusTransport on sockets

Function Documentation

DBusTransport* _dbus_transport_new_for_socket ( int  fd,
const DBusString server_guid,
const DBusString address 
)

Creates a new transport for the given socket 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_guid non-NULL 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 1148 of file dbus-transport-socket.c.

Referenced by _dbus_transport_new_for_domain_socket(), and _dbus_transport_new_for_tcp_socket().

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 1214 of file dbus-transport-socket.c.

Referenced by _dbus_transport_open_socket().

DBusTransportOpenResult _dbus_transport_open_socket ( DBusAddressEntry entry,
DBusTransport **  transport_p,
DBusError error 
)

Opens a TCP socket transport.

Parameters:
entry the address entry to try opening as a tcp transport.
transport_p return location for the opened transport
error error to be set
Returns:
result of the attempt

Definition at line 1283 of file dbus-transport-socket.c.


Generated on Tue Oct 14 03:28:56 2008 for D-Bus by  doxygen 1.5.3