index.html
Main Page
|
modules.html
Modules
|
namespaces.html
Namespace List
|
hierarchy.html
Class Hierarchy
|
annotated.html
Data Structures
|
dirs.html
Directories
|
files.html
File List
|
namespacemembers.html
Namespace Members
|
functions.html
Data Fields
|
pages.html
Related Pages
DBusTransport object
[
group__DBusInternals.html
D-BUS internal implementation details
]
"Backend" for a
structDBusConnection.html
DBusConnection
.
#_details
More...
Typedefs
typedef
structDBusTransport.html
DBusTransport
group__DBusTransport.html#ga25
DBusTransport
Opaque object representing a way message stream.
#ga25
Functions
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusTransport.html#ga1
_dbus_transport_init_base
(
structDBusTransport.html
DBusTransport
*transport, const
structDBusTransportVTable.html
DBusTransportVTable
*vtable, const
structDBusString.html
DBusString
*server_guid, const
structDBusString.html
DBusString
*address)
Initializes the base class members of
structDBusTransport.html
DBusTransport
.
#ga1
void
group__DBusTransport.html#ga2
_dbus_transport_finalize_base
(
structDBusTransport.html
DBusTransport
*transport)
Finalizes base class members of
structDBusTransport.html
DBusTransport
.
#ga2
structDBusTransport.html
DBusTransport
*
group__DBusTransport.html#ga3
_dbus_transport_open
(
structDBusAddressEntry.html
DBusAddressEntry
*entry,
structDBusError.html
DBusError
*error)
Try to open a new transport for the given address entry.
#ga3
structDBusTransport.html
DBusTransport
*
group__DBusTransport.html#ga4
_dbus_transport_ref
(
structDBusTransport.html
DBusTransport
*transport)
Increments the reference count for the transport.
#ga4
void
group__DBusTransport.html#ga5
_dbus_transport_unref
(
structDBusTransport.html
DBusTransport
*transport)
Decrements the reference count for the transport.
#ga5
void
group__DBusTransport.html#ga6
_dbus_transport_disconnect
(
structDBusTransport.html
DBusTransport
*transport)
Closes our end of the connection to a remote application.
#ga6
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusTransport.html#ga7
_dbus_transport_get_is_connected
(
structDBusTransport.html
DBusTransport
*transport)
Returns
group__DBusMacros.html#ga2
TRUE
if the transport has not been disconnected.
#ga7
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusTransport.html#ga8
_dbus_transport_get_is_authenticated
(
structDBusTransport.html
DBusTransport
*transport)
Returns
group__DBusMacros.html#ga2
TRUE
if we have been authenticated.
#ga8
const char *
group__DBusTransport.html#ga9
_dbus_transport_get_address
(
structDBusTransport.html
DBusTransport
*transport)
Gets the address of a transport.
#ga9
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusTransport.html#ga10
_dbus_transport_handle_watch
(
structDBusTransport.html
DBusTransport
*transport,
structDBusWatch.html
DBusWatch
*watch, unsigned int condition)
Handles a watch by reading data, writing data, or disconnecting the transport, as appropriate for the given condition.
#ga10
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusTransport.html#ga11
_dbus_transport_set_connection
(
structDBusTransport.html
DBusTransport
*transport,
structDBusConnection.html
DBusConnection
*connection)
Sets the connection using this transport.
#ga11
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusTransport.html#ga12
_dbus_transport_get_unix_fd
(
structDBusTransport.html
DBusTransport
*transport, int *fd_p)
Get the UNIX file descriptor, if any.
#ga12
void
group__DBusTransport.html#ga13
_dbus_transport_do_iteration
(
structDBusTransport.html
DBusTransport
*transport, unsigned int flags, int timeout_milliseconds)
Performs a single poll()/select() on the transport's file descriptors and then reads/writes data as appropriate, queueing incoming messages and sending outgoing messages.
#ga13
DBusDispatchStatus
group__DBusTransport.html#ga15
_dbus_transport_get_dispatch_status
(
structDBusTransport.html
DBusTransport
*transport)
Reports our current dispatch status (whether there's buffered data to be queued as messages, or not, or we need memory).
#ga15
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusTransport.html#ga16
_dbus_transport_queue_messages
(
structDBusTransport.html
DBusTransport
*transport)
Processes data we've read while handling a watch, potentially converting some of it to messages and queueing those messages on the connection.
#ga16
void
group__DBusTransport.html#ga17
_dbus_transport_set_max_message_size
(
structDBusTransport.html
DBusTransport
*transport, long size)
See
group__DBusConnection.html#ga61
dbus_connection_set_max_message_size()
.
#ga17
long
group__DBusTransport.html#ga18
_dbus_transport_get_max_message_size
(
structDBusTransport.html
DBusTransport
*transport)
See
group__DBusConnection.html#ga62
dbus_connection_get_max_message_size()
.
#ga18
void
group__DBusTransport.html#ga19
_dbus_transport_set_max_received_size
(
structDBusTransport.html
DBusTransport
*transport, long size)
See
group__DBusConnection.html#ga63
dbus_connection_set_max_received_size()
.
#ga19
long
group__DBusTransport.html#ga20
_dbus_transport_get_max_received_size
(
structDBusTransport.html
DBusTransport
*transport)
See
group__DBusConnection.html#ga64
dbus_connection_get_max_received_size()
.
#ga20
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusTransport.html#ga21
_dbus_transport_get_unix_user
(
structDBusTransport.html
DBusTransport
*transport, unsigned long *uid)
See
group__DBusConnection.html#ga46
dbus_connection_get_unix_user()
.
#ga21
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusTransport.html#ga22
_dbus_transport_get_unix_process_id
(
structDBusTransport.html
DBusTransport
*transport, unsigned long *pid)
See
group__DBusConnection.html#ga47
dbus_connection_get_unix_process_id()
.
#ga22
void
group__DBusTransport.html#ga23
_dbus_transport_set_unix_user_function
(
structDBusTransport.html
DBusTransport
*transport, DBusAllowUnixUserFunction function, void *data,
group__DBusMemory.html#ga8
DBusFreeFunction
free_data_function, void **old_data,
group__DBusMemory.html#ga8
DBusFreeFunction
*old_free_data_function)
See
group__DBusConnection.html#ga48
dbus_connection_set_unix_user_function()
.
#ga23
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusTransport.html#ga24
_dbus_transport_set_auth_mechanisms
(
structDBusTransport.html
DBusTransport
*transport, const char **mechanisms)
Sets the SASL authentication mechanisms supported by this transport.
#ga24
Detailed Description
"Backend" for a
structDBusConnection.html
DBusConnection
.
Types and functions related to
structDBusTransport.html
DBusTransport
. A transport is an abstraction that can send and receive data via various kinds of network connections or other IPC mechanisms.
Typedef Documentation
structDBusTransport.html
DBusTransport
Opaque object representing a way message stream.
structDBusTransport.html
DBusTransport
abstracts various kinds of actual transport mechanism, such as different network protocols, or encryption schemes.
Definition at line
dbus-transport_8h-source.html#l00033
33
of file
dbus-transport_8h-source.html
dbus-transport.h
.
Function Documentation
void _dbus_transport_disconnect
(
structDBusTransport.html
DBusTransport
*
transport
)
Closes our end of the connection to a remote application.
Further attempts to use this transport will fail. Only the first call to
group__DBusTransport.html#ga6
_dbus_transport_disconnect()
will have an effect.
Parameters:
transport
the transport.
Definition at line
dbus-transport_8c-source.html#l00397
397
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-internals_8h-source.html#l00100
_dbus_assert
,
structDBusTransportVTable.html#o2
DBusTransportVTable::disconnect
,
dbus-transport-protected_8h-source.html#l00108
disconnected
,
group__DBusMacros.html#ga4
NULL
,
group__DBusMacros.html#ga2
TRUE
, and
dbus-transport-protected_8h-source.html#l00084
vtable
.
Referenced by
dbus-transport_8c-source.html#l00186
_dbus_transport_finalize_base()
,
dbus-transport_8c-source.html#l00438
_dbus_transport_get_is_authenticated()
,
dbus-transport_8c-source.html#l00857
_dbus_transport_queue_messages()
, and
dbus-connection_8c-source.html#l01930
dbus_connection_close()
.
void _dbus_transport_do_iteration
(
structDBusTransport.html
DBusTransport
*
transport
,
unsigned int
flags
,
int
timeout_milliseconds
)
Performs a single poll()/select() on the transport's file descriptors and then reads/writes data as appropriate, queueing incoming messages and sending outgoing messages.
This is the backend for _dbus_connection_do_iteration(). See _dbus_connection_do_iteration() for full details.
Parameters:
transport
the transport.
flags
indicates whether to read or write, and whether to block.
timeout_milliseconds
if blocking, timeout or -1 for no timeout.
Definition at line
dbus-transport_8c-source.html#l00698
698
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-internals_8h-source.html#l00100
_dbus_assert
,
dbus-transport_8c-source.html#l00355
_dbus_transport_ref()
,
dbus-transport_8c-source.html#l00372
_dbus_transport_unref()
,
dbus-transport-protected_8h-source.html#l00108
disconnected
,
structDBusTransportVTable.html#o4
DBusTransportVTable::do_iteration
,
group__DBusMacros.html#ga4
NULL
, and
dbus-transport-protected_8h-source.html#l00084
vtable
.
Referenced by
dbus-connection_8c-source.html#l01034
_dbus_connection_do_iteration_unlocked()
.
void _dbus_transport_finalize_base
(
structDBusTransport.html
DBusTransport
*
transport
)
Finalizes base class members of
structDBusTransport.html
DBusTransport
.
Chained up to from subclass finalizers.
Parameters:
transport
the transport.
Definition at line
dbus-transport_8c-source.html#l00186
186
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-auth_8c-source.html#l02074
_dbus_auth_unref()
,
dbus-resources_8c-source.html#l00184
_dbus_counter_set_notify()
,
dbus-resources_8c-source.html#l00118
_dbus_counter_unref()
,
dbus-message_8c-source.html#l03173
_dbus_message_loader_unref()
,
dbus-transport_8c-source.html#l00397
_dbus_transport_disconnect()
,
dbus-transport-protected_8h-source.html#l00099
address
,
dbus-transport-protected_8h-source.html#l00090
auth
,
dbus-memory_8c-source.html#l00612
dbus_free()
,
dbus-transport-protected_8h-source.html#l00108
disconnected
,
dbus-transport-protected_8h-source.html#l00101
expected_guid
,
dbus-transport-protected_8h-source.html#l00106
free_unix_user_data
,
dbus-transport-protected_8h-source.html#l00096
live_messages_size
,
dbus-transport-protected_8h-source.html#l00088
loader
,
group__DBusMacros.html#ga4
NULL
, and
dbus-transport-protected_8h-source.html#l00104
unix_user_data
.
const char* _dbus_transport_get_address
(
structDBusTransport.html
DBusTransport
*
transport
)
Gets the address of a transport.
It will be
group__DBusMacros.html#ga4
NULL
for a server-side transport.
Parameters:
transport
the transport
Returns:
transport's address
Definition at line
dbus-transport_8c-source.html#l00588
588
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-transport-protected_8h-source.html#l00099
address
.
DBusDispatchStatus _dbus_transport_get_dispatch_status
(
structDBusTransport.html
DBusTransport
*
transport
)
Reports our current dispatch status (whether there's buffered data to be queued as messages, or not, or we need memory).
Parameters:
transport
the transport
Returns:
current status
Definition at line
dbus-transport_8c-source.html#l00819
819
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-auth_8c-source.html#l02155
_dbus_auth_do_work()
,
dbus-resources_8c-source.html#l00168
_dbus_counter_get_value()
,
dbus-message_8c-source.html#l03474
_dbus_message_loader_peek_message()
,
dbus-message_8c-source.html#l03411
_dbus_message_loader_queue_messages()
,
dbus-transport_8c-source.html#l00438
_dbus_transport_get_is_authenticated()
,
dbus-transport-protected_8h-source.html#l00096
live_messages_size
,
dbus-transport-protected_8h-source.html#l00094
max_live_messages_size
,
group__DBusMacros.html#ga4
NULL
, and
group__DBusMacros.html#ga2
TRUE
.
Referenced by
dbus-transport_8c-source.html#l00857
_dbus_transport_queue_messages()
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_transport_get_is_authenticated
(
structDBusTransport.html
DBusTransport
*
transport
)
Returns
group__DBusMacros.html#ga2
TRUE
if we have been authenticated.
Will return
group__DBusMacros.html#ga2
TRUE
even if the transport is disconnected.
todo.html#_todo000085
Todo:
we drop connection->mutex when calling the unix_user_function, which may not be safe really.
Parameters:
transport
the transport
Returns:
whether we're authenticated
Definition at line
dbus-transport_8c-source.html#l00438
438
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-internals_8h-source.html#l00100
_dbus_assert
,
dbus-auth_8c-source.html#l02155
_dbus_auth_do_work()
,
dbus-auth_8c-source.html#l02468
_dbus_auth_get_guid_from_server()
,
dbus-auth_8c-source.html#l02452
_dbus_auth_get_identity()
,
dbus-connection_8c-source.html#l00291
_dbus_connection_lock()
,
dbus-connection_8c-source.html#l01258
_dbus_connection_ref_unlocked()
,
dbus-connection_8c-source.html#l00302
_dbus_connection_unlock()
,
dbus-connection_8c-source.html#l01282
_dbus_connection_unref_unlocked()
,
dbus-sysdeps_8c-source.html#l01713
_dbus_credentials_from_current_process()
,
dbus-sysdeps_8c-source.html#l01737
_dbus_credentials_match()
,
dbus-internals_8c-source.html#l00303
_dbus_strdup()
,
dbus-transport_8c-source.html#l00397
_dbus_transport_disconnect()
,
dbus-transport-protected_8h-source.html#l00090
auth
,
dbus-transport-protected_8h-source.html#l00109
authenticated
,
dbus-transport-protected_8h-source.html#l00086
connection
,
dbus-transport-protected_8h-source.html#l00108
disconnected
,
dbus-transport-protected_8h-source.html#l00101
expected_guid
,
group__DBusMacros.html#ga3
FALSE
,
dbus-transport-protected_8h-source.html#l00112
is_server
,
group__DBusMacros.html#ga4
NULL
,
dbus-transport-protected_8h-source.html#l00111
receive_credentials_pending
,
dbus-transport-protected_8h-source.html#l00110
send_credentials_pending
,
group__DBusMacros.html#ga2
TRUE
,
dbus-sysdeps_8h-source.html#l00108
DBusCredentials::uid
,
dbus-transport-protected_8h-source.html#l00104
unix_user_data
, and
dbus-transport-protected_8h-source.html#l00103
unix_user_function
.
Referenced by
dbus-connection_8c-source.html#l00358
_dbus_connection_queue_received_message_link()
,
dbus-transport_8c-source.html#l00819
_dbus_transport_get_dispatch_status()
,
dbus-connection_8c-source.html#l02002
dbus_connection_get_is_authenticated()
,
dbus-connection_8c-source.html#l04067
dbus_connection_get_unix_process_id()
, and
dbus-connection_8c-source.html#l04036
dbus_connection_get_unix_user()
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_transport_get_is_connected
(
structDBusTransport.html
DBusTransport
*
transport
)
Returns
group__DBusMacros.html#ga2
TRUE
if the transport has not been disconnected.
Disconnection can result from
group__DBusTransport.html#ga6
_dbus_transport_disconnect()
or because the server drops its end of the connection.
Parameters:
transport
the transport.
Returns:
whether we're connected
Definition at line
dbus-transport_8c-source.html#l00422
422
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-transport-protected_8h-source.html#l00108
disconnected
.
long _dbus_transport_get_max_message_size
(
structDBusTransport.html
DBusTransport
*
transport
)
See
group__DBusConnection.html#ga62
dbus_connection_get_max_message_size()
.
Parameters:
transport
the transport
Returns:
max message size
Definition at line
dbus-transport_8c-source.html#l00922
922
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-message_8c-source.html#l03566
_dbus_message_loader_get_max_message_size()
, and
dbus-transport-protected_8h-source.html#l00088
loader
.
Referenced by
dbus-connection_8c-source.html#l04593
dbus_connection_get_max_message_size()
.
long _dbus_transport_get_max_received_size
(
structDBusTransport.html
DBusTransport
*
transport
)
See
group__DBusConnection.html#ga64
dbus_connection_get_max_received_size()
.
Parameters:
transport
the transport
Returns:
max bytes for all live messages
Definition at line
dbus-transport_8c-source.html#l00952
952
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-transport-protected_8h-source.html#l00094
max_live_messages_size
.
Referenced by
dbus-connection_8c-source.html#l04649
dbus_connection_get_max_received_size()
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_transport_get_unix_fd
(
structDBusTransport.html
DBusTransport
*
transport
,
int *
fd_p
)
Get the UNIX file descriptor, if any.
Parameters:
transport
the transport
fd_p
pointer to fill in with the descriptor
Returns:
group__DBusMacros.html#ga2
TRUE
if a descriptor was available
Definition at line
dbus-transport_8c-source.html#l00665
665
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-transport_8c-source.html#l00355
_dbus_transport_ref()
,
dbus-transport_8c-source.html#l00372
_dbus_transport_unref()
,
dbus-transport-protected_8h-source.html#l00108
disconnected
,
group__DBusMacros.html#ga3
FALSE
,
structDBusTransportVTable.html#o6
DBusTransportVTable::get_unix_fd
,
group__DBusMacros.html#ga4
NULL
, and
dbus-transport-protected_8h-source.html#l00084
vtable
.
Referenced by
dbus-connection_8c-source.html#l04006
dbus_connection_get_unix_fd()
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_transport_get_unix_process_id
(
structDBusTransport.html
DBusTransport
*
transport
,
unsigned long *
pid
)
See
group__DBusConnection.html#ga47
dbus_connection_get_unix_process_id()
.
Parameters:
transport
the transport
pid
return location for the process ID
Returns:
group__DBusMacros.html#ga2
TRUE
if uid is filled in with a valid process ID
Definition at line
dbus-transport_8c-source.html#l00997
997
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-auth_8c-source.html#l02452
_dbus_auth_get_identity()
,
dbus-transport-protected_8h-source.html#l00090
auth
,
dbus-transport-protected_8h-source.html#l00109
authenticated
,
group__DBusMacros.html#ga3
FALSE
,
dbus-sysdeps_8h-source.html#l00107
DBusCredentials::pid
, and
group__DBusMacros.html#ga2
TRUE
.
Referenced by
dbus-connection_8c-source.html#l04067
dbus_connection_get_unix_process_id()
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_transport_get_unix_user
(
structDBusTransport.html
DBusTransport
*
transport
,
unsigned long *
uid
)
See
group__DBusConnection.html#ga46
dbus_connection_get_unix_user()
.
Parameters:
transport
the transport
uid
return location for the user ID
Returns:
group__DBusMacros.html#ga2
TRUE
if uid is filled in with a valid user ID
Definition at line
dbus-transport_8c-source.html#l00965
965
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-auth_8c-source.html#l02452
_dbus_auth_get_identity()
,
dbus-internals_8h-source.html#l00190
_DBUS_INT32_MAX
,
dbus-transport-protected_8h-source.html#l00090
auth
,
dbus-transport-protected_8h-source.html#l00109
authenticated
,
group__DBusMacros.html#ga3
FALSE
,
group__DBusMacros.html#ga2
TRUE
, and
dbus-sysdeps_8h-source.html#l00108
DBusCredentials::uid
.
Referenced by
dbus-connection_8c-source.html#l04036
dbus_connection_get_unix_user()
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_transport_handle_watch
(
structDBusTransport.html
DBusTransport
*
transport
,
structDBusWatch.html
DBusWatch
*
watch
,
unsigned int
condition
)
Handles a watch by reading data, writing data, or disconnecting the transport, as appropriate for the given condition.
Parameters:
transport
the transport.
watch
the watch.
condition
the current state of the watched file descriptor.
Returns:
group__DBusMacros.html#ga3
FALSE
if not enough memory to fully handle the watch
Definition at line
dbus-transport_8c-source.html#l00603
603
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-internals_8h-source.html#l00100
_dbus_assert
,
dbus-transport_8c-source.html#l00355
_dbus_transport_ref()
,
dbus-transport_8c-source.html#l00372
_dbus_transport_unref()
,
dbus-internals_8c-source.html#l00203
_dbus_warn()
,
dbus-watch_8c-source.html#l00103
_dbus_watch_ref()
,
dbus-watch_8c-source.html#l00161
_dbus_watch_sanitize_condition()
,
dbus-watch_8c-source.html#l00117
_dbus_watch_unref()
,
dbus-watch_8c-source.html#l00487
dbus_watch_get_fd()
,
dbus-transport-protected_8h-source.html#l00108
disconnected
,
structDBusTransportVTable.html#o1
DBusTransportVTable::handle_watch
,
group__DBusMacros.html#ga4
NULL
,
group__DBusMacros.html#ga2
TRUE
, and
dbus-transport-protected_8h-source.html#l00084
vtable
.
Referenced by
dbus-connection_8c-source.html#l01337
_dbus_connection_handle_watch()
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_transport_init_base
(
structDBusTransport.html
DBusTransport
*
transport
,
const
structDBusTransportVTable.html
DBusTransportVTable
*
vtable
,
const
structDBusString.html
DBusString
*
server_guid
,
const
structDBusString.html
DBusString
*
address
)
Initializes the base class members of
structDBusTransport.html
DBusTransport
.
Chained up to by subclasses in their constructor. The server GUID is the globally unique ID for the server creating this connection and will be
group__DBusMacros.html#ga4
NULL
for the client side of a connection. The GUID is in hex format.
Parameters:
transport
the transport being created.
vtable
the subclass vtable.
server_guid
non-
group__DBusMacros.html#ga4
NULL
if this transport is on the server side of a connection
address
the address of the transport
Returns:
group__DBusMacros.html#ga2
TRUE
on success.
Definition at line
dbus-transport_8c-source.html#l00091
91
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-internals_8h-source.html#l00100
_dbus_assert
,
dbus-auth_8c-source.html#l02021
_dbus_auth_client_new()
,
dbus-auth_8c-source.html#l01975
_dbus_auth_server_new()
,
dbus-auth_8c-source.html#l02074
_dbus_auth_unref()
,
dbus-resources_8c-source.html#l00077
_dbus_counter_new()
,
dbus-resources_8c-source.html#l00184
_dbus_counter_set_notify()
,
dbus-resources_8c-source.html#l00118
_dbus_counter_unref()
,
dbus-message_8c-source.html#l03123
_dbus_message_loader_new()
,
dbus-message_8c-source.html#l03173
_dbus_message_loader_unref()
,
dbus-string_8c-source.html#l00696
_dbus_string_copy_data()
,
dbus-transport-protected_8h-source.html#l00099
address
,
dbus-transport-protected_8h-source.html#l00090
auth
,
dbus-transport-protected_8h-source.html#l00109
authenticated
,
dbus-transport-protected_8h-source.html#l00092
credentials
,
dbus-transport-protected_8h-source.html#l00108
disconnected
,
dbus-transport-protected_8h-source.html#l00101
expected_guid
,
group__DBusMacros.html#ga3
FALSE
,
dbus-transport-protected_8h-source.html#l00106
free_unix_user_data
,
dbus-sysdeps_8h-source.html#l00109
DBusCredentials::gid
,
dbus-transport-protected_8h-source.html#l00112
is_server
,
dbus-transport-protected_8h-source.html#l00096
live_messages_size
,
dbus-transport-protected_8h-source.html#l00088
loader
,
dbus-transport-protected_8h-source.html#l00094
max_live_messages_size
,
group__DBusMacros.html#ga4
NULL
,
dbus-sysdeps_8h-source.html#l00107
DBusCredentials::pid
,
dbus-transport-protected_8h-source.html#l00111
receive_credentials_pending
,
dbus-transport-protected_8h-source.html#l00082
refcount
,
dbus-transport-protected_8h-source.html#l00110
send_credentials_pending
,
group__DBusMacros.html#ga2
TRUE
,
dbus-sysdeps_8h-source.html#l00108
DBusCredentials::uid
,
dbus-transport-protected_8h-source.html#l00104
unix_user_data
,
dbus-transport-protected_8h-source.html#l00103
unix_user_function
, and
dbus-transport-protected_8h-source.html#l00084
vtable
.
Referenced by
dbus-transport-unix_8c-source.html#l01122
_dbus_transport_new_for_fd()
.
structDBusTransport.html
DBusTransport
* _dbus_transport_open
(
structDBusAddressEntry.html
DBusAddressEntry
*
entry
,
structDBusError.html
DBusError
*
error
)
Try to open a new transport for the given address entry.
(This opens a client-side-of-the-connection transport.)
Parameters:
entry
the address entry
error
location to store reason for failure.
Returns:
new transport of
group__DBusMacros.html#ga4
NULL
on failure.
Definition at line
dbus-transport_8c-source.html#l00212
212
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-internals_8h-source.html#l00100
_dbus_assert
,
dbus-internals_8c-source.html#l00303
_dbus_strdup()
,
dbus-string_8c-source.html#l00261
_dbus_string_free()
,
dbus-string_8c-source.html#l00208
_dbus_string_init_const()
,
dbus-sysdeps_8c-source.html#l01134
_dbus_string_parse_int()
,
dbus-transport-unix_8c-source.html#l01192
_dbus_transport_new_for_domain_socket()
,
dbus-transport-unix_8c-source.html#l01259
_dbus_transport_new_for_tcp_socket()
,
dbus-address_8c-source.html#l00133
dbus_address_entry_get_method()
,
dbus-address_8c-source.html#l00146
dbus_address_entry_get_value()
,
dbus-memory_8c-source.html#l00612
dbus_free()
,
dbus-errors_8c-source.html#l00313
dbus_set_error()
,
dbus-transport-protected_8h-source.html#l00101
expected_guid
,
group__DBusMacros.html#ga3
FALSE
,
group__DBusMacros.html#ga4
NULL
, and
group__DBusMacros.html#ga2
TRUE
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_transport_queue_messages
(
structDBusTransport.html
DBusTransport
*
transport
)
Processes data we've read while handling a watch, potentially converting some of it to messages and queueing those messages on the connection.
Parameters:
transport
the transport
Returns:
group__DBusMacros.html#ga2
TRUE
if we had enough memory to queue all messages
Definition at line
dbus-transport_8c-source.html#l00857
857
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-internals_8h-source.html#l00100
_dbus_assert
,
dbus-connection_8c-source.html#l00358
_dbus_connection_queue_received_message_link()
,
dbus-message_8c-source.html#l00221
_dbus_message_add_size_counter()
,
dbus-message_8c-source.html#l03533
_dbus_message_loader_get_is_corrupted()
,
dbus-message_8c-source.html#l03505
_dbus_message_loader_pop_message_link()
,
dbus-message_8c-source.html#l03517
_dbus_message_loader_putback_message_link()
,
dbus-transport_8c-source.html#l00397
_dbus_transport_disconnect()
,
dbus-transport_8c-source.html#l00819
_dbus_transport_get_dispatch_status()
,
dbus-list_8h-source.html#l00039
DBusList::data
, and
group__DBusMacros.html#ga4
NULL
.
structDBusTransport.html
DBusTransport
* _dbus_transport_ref
(
structDBusTransport.html
DBusTransport
*
transport
)
Increments the reference count for the transport.
Parameters:
transport
the transport.
Returns:
the transport.
Definition at line
dbus-transport_8c-source.html#l00355
355
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-internals_8h-source.html#l00100
_dbus_assert
, and
dbus-transport-protected_8h-source.html#l00082
refcount
.
Referenced by
dbus-connection_8c-source.html#l01070
_dbus_connection_new_for_transport()
,
dbus-transport_8c-source.html#l00698
_dbus_transport_do_iteration()
,
dbus-transport_8c-source.html#l00665
_dbus_transport_get_unix_fd()
,
dbus-transport_8c-source.html#l00603
_dbus_transport_handle_watch()
, and
dbus-transport_8c-source.html#l00641
_dbus_transport_set_connection()
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_transport_set_auth_mechanisms
(
structDBusTransport.html
DBusTransport
*
transport
,
const char **
mechanisms
)
Sets the SASL authentication mechanisms supported by this transport.
Parameters:
transport
the transport
mechanisms
the
group__DBusMacros.html#ga4
NULL
-terminated array of mechanisms
Returns:
group__DBusMacros.html#ga3
FALSE
if no memory
Definition at line
dbus-transport_8c-source.html#l01056
1056
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-auth_8c-source.html#l02120
_dbus_auth_set_mechanisms()
, and
dbus-transport-protected_8h-source.html#l00090
auth
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_transport_set_connection
(
structDBusTransport.html
DBusTransport
*
transport
,
structDBusConnection.html
DBusConnection
*
connection
)
Sets the connection using this transport.
Allows the transport to add watches to the connection, queue incoming messages, and pull outgoing messages.
Parameters:
transport
the transport.
connection
the connection.
Returns:
group__DBusMacros.html#ga3
FALSE
if not enough memory
Definition at line
dbus-transport_8c-source.html#l00641
641
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-internals_8h-source.html#l00100
_dbus_assert
,
dbus-transport_8c-source.html#l00355
_dbus_transport_ref()
,
dbus-transport_8c-source.html#l00372
_dbus_transport_unref()
,
dbus-transport-protected_8h-source.html#l00086
connection
,
structDBusTransportVTable.html#o3
DBusTransportVTable::connection_set
,
group__DBusMacros.html#ga4
NULL
, and
dbus-transport-protected_8h-source.html#l00084
vtable
.
Referenced by
dbus-connection_8c-source.html#l01070
_dbus_connection_new_for_transport()
.
void _dbus_transport_set_max_message_size
(
structDBusTransport.html
DBusTransport
*
transport
,
long
size
)
See
group__DBusConnection.html#ga61
dbus_connection_set_max_message_size()
.
Parameters:
transport
the transport
size
the max size of a single message
Definition at line
dbus-transport_8c-source.html#l00909
909
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-message_8c-source.html#l03547
_dbus_message_loader_set_max_message_size()
, and
dbus-transport-protected_8h-source.html#l00088
loader
.
Referenced by
dbus-connection_8c-source.html#l04575
dbus_connection_set_max_message_size()
.
void _dbus_transport_set_max_received_size
(
structDBusTransport.html
DBusTransport
*
transport
,
long
size
)
See
group__DBusConnection.html#ga63
dbus_connection_set_max_received_size()
.
Parameters:
transport
the transport
size
the max size of all incoming messages
Definition at line
dbus-transport_8c-source.html#l00934
934
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-resources_8c-source.html#l00184
_dbus_counter_set_notify()
,
dbus-transport-protected_8h-source.html#l00096
live_messages_size
, and
dbus-transport-protected_8h-source.html#l00094
max_live_messages_size
.
Referenced by
dbus-connection_8c-source.html#l04631
dbus_connection_set_max_received_size()
.
void _dbus_transport_set_unix_user_function
(
structDBusTransport.html
DBusTransport
*
transport
,
DBusAllowUnixUserFunction
function
,
void *
data
,
group__DBusMemory.html#ga8
DBusFreeFunction
free_data_function
,
void **
old_data
,
group__DBusMemory.html#ga8
DBusFreeFunction
*
old_free_data_function
)
See
group__DBusConnection.html#ga48
dbus_connection_set_unix_user_function()
.
Parameters:
transport
the transport
function
the predicate
data
data to pass to the predicate
free_data_function
function to free the data
old_data
the old user data to be freed
old_free_data_function
old free data function to free it with
Definition at line
dbus-transport_8c-source.html#l01032
1032
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-transport-protected_8h-source.html#l00106
free_unix_user_data
,
dbus-transport-protected_8h-source.html#l00104
unix_user_data
, and
dbus-transport-protected_8h-source.html#l00103
unix_user_function
.
Referenced by
dbus-connection_8c-source.html#l04104
dbus_connection_set_unix_user_function()
.
void _dbus_transport_unref
(
structDBusTransport.html
DBusTransport
*
transport
)
Decrements the reference count for the transport.
Disconnects and finalizes the transport if the reference count reaches zero.
Parameters:
transport
the transport.
Definition at line
dbus-transport_8c-source.html#l00372
372
of file
dbus-transport_8c-source.html
dbus-transport.c
.
References
dbus-internals_8h-source.html#l00100
_dbus_assert
,
structDBusTransportVTable.html#o0
DBusTransportVTable::finalize
,
group__DBusMacros.html#ga4
NULL
,
dbus-transport-protected_8h-source.html#l00082
refcount
, and
dbus-transport-protected_8h-source.html#l00084
vtable
.
Referenced by
dbus-transport_8c-source.html#l00698
_dbus_transport_do_iteration()
,
dbus-transport_8c-source.html#l00665
_dbus_transport_get_unix_fd()
,
dbus-transport_8c-source.html#l00603
_dbus_transport_handle_watch()
, and
dbus-transport_8c-source.html#l00641
_dbus_transport_set_connection()
.
Generated on Tue Sep 13 01:28:09 2005 for D-BUS by
http://www.doxygen.org/index.html
doxygen
1.4.4
