![]() |
Home · Overviews · Examples |
The QHostAddress class provides an IP address. More...
The QHostAddress class provides an IP address.
This class holds an IPv4 or IPv6 address in a platform- and protocol-independent manner.
QHostAddress is normally used with the QTcpSocket, QTcpServer, and QUdpSocket to connect to a host or to set up a server.
A host address is set with setAddress, checked for its type using isIPv4Address() or isIPv6Address(), and retrieved with toIPv4Address, toIPv6Address, or toString.
The class also supports common predefined addresses: Null, LocalHost, LocalHostIPv6, Broadcast, and Any.
See also QTcpSocket, QTcpServer, and QUdpSocket.
Copyright © 2007 Trolltech | Trademarks | Qt Jambi 4.3.2_01 |