- class QDBusServer#
The
QDBusServer
class provides peer-to-peer communication between processes on the same computer. More…Synopsis#
Methods#
def
__init__()
def
address()
def
isConnected()
def
lastError()
Signals#
def
newConnection()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
Constructs a
QDBusServer
with the givenparent
. The server will listen for connections in/tmp
(on Unix systems) or on a TCP port bound to localhost (elsewhere).- __init__(address[, parent=None])
- Parameters:
address – str
parent –
QObject
Constructs a
QDBusServer
with the givenaddress
, and the givenparent
.- address()#
- Return type:
str
Returns the address this server is associated with.
- isAnonymousAuthenticationAllowed()#
- Return type:
bool
Returns true if anonymous authentication is allowed.
See also
- isConnected()#
- Return type:
bool
Returns
true
if thisQDBusServer
object is connected.If it isn’t connected, you need to call the constructor again.
- lastError()#
- Return type:
Returns the last error that happened in this server.
This function is provided for low-level code.
- newConnection(connection)#
- Parameters:
connection –
QDBusConnection
This signal is emitted when a new client connection
connection
is established to the server.- setAnonymousAuthenticationAllowed(value)#
- Parameters:
value – bool
If
value
is set to true, an incoming connection can proceed even if the connecting client is not authenticated as a user.By default, this value is false.
See also