Qt Network
Qt Network 모듈은 TCP/IP를 사용하는 애플리케이션 프로그래밍을 위한 일련의 API를 제공합니다. 요청, 쿠키, HTTP를 통한 데이터 전송과 같은 작업은 다양한 C++ 클래스가 처리합니다.
모듈 사용하기
Qt 모듈의 C++ API를 사용하려면 모듈 라이브러리에 직접 또는 다른 종속성을 통해 링크해야 합니다. CMake와 qmake를 비롯한 여러 빌드 도구가 이를 지원합니다.
CMake로 빌드하기
find_package()
명령을 사용하여 Qt6
패키지에서 필요한 모듈 컴포넌트를 찾습니다:
find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network)
자세한 내용은 CMake로 빌드 개요를 참조하세요.
qmake로 빌드하기
qmake로 빌드하도록 모듈을 구성하려면 프로젝트의 .pro 파일에 QT
변수의 값으로 모듈을 추가합니다:
QT += network
문서 및 가이드
이 문서에는 Qt Network 설정 및 네트워킹 기능이 있는 애플리케이션에 대한 정보가 포함되어 있습니다.
- Qt를 이용한 네트워크 프로그래밍 - 네트워킹 기능이 있는 애플리케이션 프로그래밍하기
- SSL(보안 소켓 계층) 클래스 - 네트워크 소켓을 통한 보안 통신을 위한 클래스
API 참조
API 참조 자료에 대한 링크입니다.
모듈 진화
Qt Network 의 변경 사항에는 Qt 6 시리즈에 적용된 모듈 API 및 기능의 중요한 변경 사항이 나열되어 있습니다.
라이선스 및 속성
Qt Network 는 Qt Company의 상용 라이선스에 따라 사용할 수 있습니다. 또한 GNU 약소 일반 공중 사용 허가서 버전 3 또는 GNU 일반 공중 사용 허가서 버전 2에 따라 사용할 수 있습니다. 자세한 내용은 Qt 라이선스를 참조하십시오.
또한 Qt 6.8.2의 Qt Network 에는 다음과 같은 허용 라이선스에 따라 타사 모듈이 포함될 수 있습니다:
The Public Suffix List, version 903a83ff7bfc3148e3692e09396f9f3bdc9462ef, fetched on 2024-06-05 | Mozilla 공중 사용 허가서 2.0 |
BSD 3-절 "신" 또는 "개정" 라이선스 |
Qt Network 은 OpenSSL 툴킷을 백엔드로 사용할 수 있습니다. 그런 다음 라이브러리는 OpenSSL 라이선스를 준수해야 하는 방식으로 OpenSSL에 연결됩니다. GPL에 따라 OpenSSL을 Qt Network 에 연결할 수 있도록 허용하려면 다음과 같은 GPL의 예외가 적용됩니다:
In addition, as a special exception, the copyright holders listed above give permission to link the code of its release of Qt with the OpenSSL project's "OpenSSL" library (or modified versions of the "OpenSSL" library that use the same license as the original version), and distribute the linked executables. You must comply with the GNU General Public License version 2 in all respects for all of the code used other than the "OpenSSL" code. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version of this file.
또한 OpenSSL을 배송하면 가져오기 및 내보내기 제한이 적용될 수 있습니다.
© 2025 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.