Qt 网络模块如何使用?

1.网络模块介绍

类名 说明 中文
QAbstractNetworkCache The interface for cache implementations 缓存实现的接口
QNetworkCacheMetaData Cache information 缓存信息
QHstsPolicy Specifies that a host supports HTTP Strict Transport Security policy (HSTS) 指定主机支持HTTP严格传输安全策略(HSTS)
QHttpMultiPart Resembles a MIME multipart message to be sent over HTTP 类似于通过HTTP发送的MIME多部分消息
QHttpPart Holds a body part to be used inside a HTTP multipart MIME message 在HTTP多部分MIME消息中保存要使用的身体部分
QNetworkAccessManager Allows the application to send network requests and receive replies 允许应用程序发送网络请求并接收回复
QNetworkCookie Holds ne network cookie 保持网络cookie
QNetworkCookieJar Implements a simple jar of QNetworkCookie objects 实现一个简单的QNetworkCookie对象
QNetworkDiskCache Very basic disk cache 非常基本的磁盘缓存
QNetworkReply Contains the data and headers for a request sent with QNetworkAccessManager 包含使用QNetworkAccessManager发送的请求的数据和标题
QNetworkRequest Holds a request to be sent with QNetworkAccessManager 持有使用QNetworkAccessManager发送的请求
QNetworkConfigurationManager Manages the network configurations provided by the system 管理系统提供的网络配置
QNetworkConfiguration Abstraction of one or more access point configurations 抽象一个或多个接入点配置
QNetworkSession Control over the system's access points and enables session management for cases when multiple clients access the same access point 控制系统的接入点,并为多个客户端访问同一接入点的情况启用会话管理
QAuthenticator Authentication object 认证对象
QDnsDomainNameRecord Stores information about a domain name record 存储有关域名记录的信息
QDnsHostAddressRecord Stores information about a host address record 存储有关主机地址记录的信息
QDnsLookup Represents a DNS lookup 表示DNS查找
QDnsMailExchangeRecord Stores information about a DNS MX record 存储有关DNS MX记录的信息
QDnsServiceRecord Stores information about a DNS SRV record 存储有关DNS SRV记录的信息
QDnsTextRecord Stores information about a DNS TXT record 存储有关DNS TXT记录的信息
QHostAddress IP address IP地址
QHostInfo Static functions for host name lookups 用于主机名查找的静态函数
QNetworkDatagram The data and metadata of a UDP datagram UDP数据报的数据和元数据
QNetworkAddressEntry Stores one IP address supported by a network interface, along with its associated netmask and broadcast address 存储网络接口支持的一个IP地址及其关联的网络掩码和广播地址
QNetworkInterface Listing of the host's IP addresses and network interfaces 列出主机的IP地址和网络接口
QNetworkProxy Network layer proxy 网络层代理
QNetworkProxyFactory Fine-grained proxy selection 细粒度代理选择
QNetworkProxyQuery Used to query the proxy settings for a socket 用于查询套接字的代理设置
QAbstractSocket The base functionality common to all socket types 所有套接字类型通用的基本功能
QLocalServer Local socket based server 本地套接字服务器
QLocalSocket Local socket 本地套接字
QSctpServer SCTP-based server 基于SCTP的服务器
QSctpSocket SCTP socket SCTP套接字
QTcpServer TCP-based server 基于TCP的服务器
QTcpSocket TCP socket TCP 套接字
QUdpSocket UDP socket UDP 套接字
QSslCertificate Convenient API for an X509 certificate 简单的X509证书API
QSslCertificateExtension API for accessing the extensions of an X509 certificate 用于访问X509证书扩展名的API
QSslCipher Represents an SSL cryptographic cipher 表示SSL加密密码
QSslConfiguration Holds the configuration and state of an SSL connection 保持SSL连接的配置和状态
QSslDiffieHellmanParameters Interface for Diffie-Hellman parameters for servers 服务器的Diffie-Hellman参数接口
QSslEllipticCurve Represents an elliptic curve for use by elliptic-curve cipher algorithms 表示椭圆曲线密码算法使用的椭圆曲线
QSslError SSL error SSL错误
QSslKey Interface for private and public keys 私钥和公钥的接口
QSslPreSharedKeyAuthenticator Authentication data for pre shared keys (PSK) ciphersuites 用于预共享密钥(PSK)密码套件的认证数据
QSslSocket SSL encrypted socket for both clients and servers 用于客户端和服务器的SSL加密套接字
posted @   學海無涯  阅读(1389)  评论(0编辑  收藏  举报
(评论功能已被禁用)
编辑推荐:
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
阅读排行:
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
点击右上角即可分享
微信分享提示