Network - Add QHostAddress::isLoopback API.
authorShane Kearns <shane.kearns@accenture.com>
Mon, 24 Oct 2011 10:01:09 +0000 (11:01 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 24 Oct 2011 11:56:41 +0000 (13:56 +0200)
commit3736dcb65e92ea3d6f1af827a52b09ebd1250f7e
tree6dfe2acfabd55ac35135dfd19c4ada764001e475
parent29c30a20bab4c4ea892b95c08c71bb5f136bb82c
Network - Add QHostAddress::isLoopback API.

The standard IPv4 loopback address is 127.0.0.1, however anything in
the 127.0.0.0/8 range is also a loopback address.

isLoopback returns true for any address that is in the IPv4 loopback
address range, or is the single IPv6 loopback address ::1

Task-number: QTBUG-22246
Change-Id: Ic39100e2e97a52db700e01b109998a1cfd4335e3
Reviewed-by: Thiago Macieira (Intel) <thiago.macieira@intel.com>
dist/changes-5.0.0
src/network/kernel/qhostaddress.cpp
src/network/kernel/qhostaddress.h
tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp