QDBusServer Class
QDBusServer 클래스는 동일한 컴퓨터 내의 프로세스 간에 피어 투 피어 통신을 제공합니다. 더 보기...
| 헤더: | #include <QDBusServer> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS DBus) target_link_libraries(mytarget PRIVATE Qt6::DBus) |
| qmake: | QT += dbus |
| 상속: | QObject |
공개 함수
| QDBusServer(QObject *parent = nullptr) | |
| QDBusServer(const QString &address, QObject *parent = nullptr) | |
| virtual | ~QDBusServer() |
| QString | address() const |
| bool | isAnonymousAuthenticationAllowed() const |
| bool | isConnected() const |
| QDBusError | lastError() const |
| void | setAnonymousAuthenticationAllowed(bool value) |
신호
| void | newConnection(const QDBusConnection &connection) |
멤버 함수 설명서
[explicit] QDBusServer::QDBusServer(QObject *parent = nullptr)
지정된 ` parent`을 사용하여 QDBusServer를 생성합니다. 이 서버는 ` /tmp `(유닉스 시스템의 경우) 또는 로컬호스트에 바인딩된 TCP 포트(그 외 시스템의 경우)에서 연결 요청을 수신 대기합니다.
[explicit] QDBusServer::QDBusServer(const QString &address, QObject *parent = nullptr)
지정된 ` address` 및 ` parent`을 사용하여 QDBusServer를 생성합니다.
[virtual noexcept] QDBusServer::~QDBusServer()
a를 파괴합니다 QDBusServer
QString QDBusServer::address() const
이 서버와 연결된 주소를 반환합니다.
bool QDBusServer::isAnonymousAuthenticationAllowed() const
익명 인증이 허용되는 경우 true를 반환합니다.
setAnonymousAuthenticationAllowed()도 참조하십시오 .
bool QDBusServer::isConnected() const
이 QDBusServer 객체가 연결되어 있으면 true 를 반환합니다.
연결되어 있지 않은 경우, 생성자를 다시 호출해야 합니다.
QDBusError QDBusServer::lastError() const
이 서버에서 발생한 마지막 오류를 반환합니다.
이 함수는 저수준 코드용으로 제공됩니다.
[signal] void QDBusServer::newConnection(const QDBusConnection &connection)
이 신호는 서버에 새로운 클라이언트 연결 connection 이 설정될 때 발생합니다.
void QDBusServer::setAnonymousAuthenticationAllowed(bool value)
value 가 true로 설정된 경우, 연결하는 클라이언트가 사용자로 인증되지 않았더라도 수신 연결을 진행할 수 있습니다.
기본적으로 이 값은 false입니다.
isAnonymousAuthenticationAllowed()도 참조하십시오 .
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.