mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 00:49:46 +02:00
#if POCO_HAVE_IPv6 => #if defined(POCO_HAVE_IPv6)
This commit is contained in:
@@ -55,7 +55,7 @@ DatagramSocketImpl::DatagramSocketImpl(IPAddress::Family family)
|
|||||||
{
|
{
|
||||||
if (family == IPAddress::IPv4)
|
if (family == IPAddress::IPv4)
|
||||||
init(AF_INET);
|
init(AF_INET);
|
||||||
#if POCO_HAVE_IPv6
|
#if defined(POCO_HAVE_IPv6)
|
||||||
else if (family == IPAddress::IPv6)
|
else if (family == IPAddress::IPv6)
|
||||||
init(AF_INET6);
|
init(AF_INET6);
|
||||||
#endif
|
#endif
|
||||||
|
@@ -63,7 +63,7 @@ ICMPPacket::ICMPPacket(IPAddress::Family family, int dataSize):_pImpl(0)
|
|||||||
{
|
{
|
||||||
if (family == IPAddress::IPv4)
|
if (family == IPAddress::IPv4)
|
||||||
_pImpl = new ICMPv4PacketImpl(dataSize);
|
_pImpl = new ICMPv4PacketImpl(dataSize);
|
||||||
#if POCO_HAVE_IPv6
|
#if defined(POCO_HAVE_IPv6)
|
||||||
else if (family == IPAddress::IPv6)
|
else if (family == IPAddress::IPv6)
|
||||||
throw NotImplementedException("ICMPv6 packets not implemented.");
|
throw NotImplementedException("ICMPv6 packets not implemented.");
|
||||||
#endif
|
#endif
|
||||||
|
@@ -55,7 +55,7 @@ RawSocketImpl::RawSocketImpl(IPAddress::Family family, int proto)
|
|||||||
{
|
{
|
||||||
if (family == IPAddress::IPv4)
|
if (family == IPAddress::IPv4)
|
||||||
init2(AF_INET, proto);
|
init2(AF_INET, proto);
|
||||||
#if POCO_HAVE_IPv6
|
#if defined(POCO_HAVE_IPv6)
|
||||||
else if (family == IPAddress::IPv6)
|
else if (family == IPAddress::IPv6)
|
||||||
init2(AF_INET6, proto);
|
init2(AF_INET6, proto);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user