CHAPTER 14Networking

Qt supports IP-based connections made with both transmission control protocol (TCP) and user datagram protocol (UDP) sockets. Additionally, Qt supports client-side implementations of the HTTP and FTP protocols, which help with creating FTP clients and HTTP-based downloading. All these classes are kept in a separate networking module of Qt.

This chapter starts with a discussion of client-side protocols and how they can be used for downloading data (the client side of the protocols is the code used when interacting with a server). You will also have a quick look at the QUrl class, which is used for handing URLs and their different parts.

The latter half of the chapter discusses TCP and UDP socket classes and how you can implement ...

Get Foundations of Qt Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.