These classes offer a synchronous API through the waitFor* methods as well as an asynchronous API if possible (i.e. The network access API uses the socket classes mentioned below (for TCP and SSL) internally.įor communication at the socket level, QTcpSocket, QUdpSocket and QSslSocket should be used. Put simply, the QNetworkRequest resembles an HTTP request, which gets passed to the QNetworkAccessManager to send the request on the wire this class returns a QNetworkReply, which enables parsing the HTTP reply. Qt supports a wide range of network communication, with a focus on HTTP, TCP, and UDP.Īt the HTTP level, the Qt Network module offers the network access API, which consists mainly of QNetworkRequest, QNetworkAccessManager, and QNetworkReply. It is however also possible for a single process to exclusively lock that shared memory. QSharedMemory provides access to a shared memory segment by multiple threads and processes. However, it is also possible to let applications communicate directly with each other. It mostly communicates via a central server application, called a bus. Qt D-Bus provides support for D-Bus, an interprocess communication and remoteprocedure calling mechanism. The class QProcess is used to start external programs. Qt also offers functionalities for inter-process communication (IPC). Qt WebEngine can render HTML5, XHTML, and SVG documents, and execute Javascript. Qt WebEngine offers a Chromium-based web engine that enables using web content in your application. It does however not take care of the network configurations itself. It has functions that can start or stop network interfaces and roam between access points. Qt Network also provides the Bearer Management API. Filtering and redistributing network traffic via proxies can handled by the QNetWorkProxy class. QHostInfo is called before creating a network connection with QTcpSocket or QUdpSocket. Classes like QTcpSocket and QUdpSocket enable the developer to send and receive messages using the TCP or UDP protocol.Name resolution is done with QHostInfo. Qt Network can also handle lower level protocols like TCP and UDP. Qt provides classes for both high-level and low-level network communication, classes for web integration, and classes for interprocess communication.įor high-level network traffic, Qt Network provides an abstraction layer over the operations used, showing only high-level classes and functions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |