Qt Reference Documentation

QtNetwork Module

The QtNetwork module provides classes to make network programming easier and portable. More...

Namespaces

QSsl

Declares enums common to all SSL classes in QtNetwork

Classes

QAbstractNetworkCache

The interface for cache implementations

QAbstractSocket

The base functionality common to all socket types

QAuthenticator

Authentication object

QFtp

Implementation of the client side of FTP protocol

QHostAddress

IP address

QHostInfo

Static functions for host name lookups

QHttpMultiPart

Resembles a MIME multipart message to be sent over HTTP

QHttpPart

Holds a body part to be used inside a HTTP multipart MIME message

QLocalServer

Local socket based server

QLocalSocket

Local socket

QNetworkAccessManager

Allows the application to send network requests and receive replies

QNetworkAddressEntry

Stores one IP address supported by a network interface, along with its associated netmask and broadcast address

QNetworkCacheMetaData

Cache information

QNetworkConfiguration

Abstraction of one or more access point configurations

QNetworkConfigurationManager

Manages the network configurations provided by the system

QNetworkCookie

Holds one network cookie

QNetworkCookieJar

Implements a simple jar of QNetworkCookie objects

QNetworkDiskCache

Very basic disk cache

QNetworkInterface

Listing of the host's IP addresses and network interfaces

QNetworkProxy

Network layer proxy

QNetworkProxyFactory

Fine-grained proxy selection

QNetworkProxyQuery

Used to query the proxy settings for a socket

QNetworkReply

Contains the data and headers for a request sent with QNetworkAccessManager

QNetworkRequest

Holds a request to be sent with QNetworkAccessManager

QNetworkSession

Control over the system's access points and enables session management for cases when multiple clients access the same access point

QSslCertificate

Convenient API for an X509 certificate

QSslCipher

Represents an SSL cryptographic cipher

QSslConfiguration

Holds the configuration and state of an SSL connection

QSslError

SSL error

QSslKey

Interface for private and public keys

QSslSocket

SSL encrypted socket for both clients and servers

QTcpServer

TCP-based server

QTcpSocket

TCP socket

QUdpSocket

UDP socket

QUrlInfo

Stores information about URLs

Detailed Description

To include the definitions of the module's classes, use the following directive:

 #include <QtNetwork>

To link against the module, add this line to your qmake .pro file:

 QT += network