QDnsHostAddressRecord Class
QDnsHostAddressRecord 클래스는 호스트 주소 레코드에 대한 정보를 저장합니다. 더 보기...
| 헤더: | #include <QDnsHostAddressRecord> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Network) target_link_libraries(mytarget PRIVATE Qt6::Network) |
| qmake: | QT += network |
- 상속된 멤버를 포함한 모든 멤버 목록
- QDnsHostAddressRecord는 네트워크 프로그래밍 API 및 암시적 공유 클래스의 일부입니다.
공개 함수
| QDnsHostAddressRecord() | |
| QDnsHostAddressRecord(const QDnsHostAddressRecord &other) | |
| ~QDnsHostAddressRecord() | |
| QString | name() const |
| void | swap(QDnsHostAddressRecord &other) |
| quint32 | timeToLive() const |
| QHostAddress | value() const |
| QDnsHostAddressRecord & | operator=(const QDnsHostAddressRecord &other) |
QDnsLookup도 참조하십시오 .
멤버 함수 설명
QDnsHostAddressRecord::QDnsHostAddressRecord()
빈 호스트 주소 레코드 객체를 생성합니다.
QDnsHostAddressRecord::QDnsHostAddressRecord(const QDnsHostAddressRecord &other)
other 의 복사본을 생성합니다.
[noexcept] QDnsHostAddressRecord::~QDnsHostAddressRecord()
호스트 주소 레코드를 삭제합니다.
QString QDnsHostAddressRecord::name() const
이 레코드의 이름을 반환합니다.
[noexcept] void QDnsHostAddressRecord::swap(QDnsHostAddressRecord &other)
이 호스트 주소 레코드 인스턴스를 other 로 교체합니다. 이 작업은 매우 빠르게 수행되며 절대 실패하지 않습니다.
quint32 QDnsHostAddressRecord::timeToLive() const
이 레코드의 유효 기간을 초 단위로 반환합니다.
QHostAddress QDnsHostAddressRecord::value() const
이 호스트 주소 레코드의 값을 반환합니다.
QDnsHostAddressRecord &QDnsHostAddressRecord::operator=(const QDnsHostAddressRecord &other)
other 객체의 데이터를 이 레코드 객체에 할당하고, 해당 객체에 대한 참조를 반환합니다.
© 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.