mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-30 13:47:10 +01:00
- added IPaddress::prefixLength
- return MemoryStreams from MemoryWriters
This commit is contained in:
@@ -325,6 +325,9 @@ public:
|
||||
|
||||
int af() const;
|
||||
/// Returns the address family (AF_INET or AF_INET6) of the address.
|
||||
|
||||
unsigned prefixLength() const;
|
||||
/// Returns the prefix length.
|
||||
|
||||
void mask(const IPAddress& mask);
|
||||
/// Masks the IP address using the given netmask, which is usually
|
||||
|
||||
@@ -96,6 +96,11 @@ void Net_API uninitializeNetwork();
|
||||
} } // namespace Poco::Net
|
||||
|
||||
|
||||
// Define to enable IPv6 support
|
||||
#if !defined (POCO_HAVE_IPv6)
|
||||
#define POCO_HAVE_IPv6
|
||||
#endif // POCO_HAVE_IPv6
|
||||
|
||||
#if !defined(s6_addr16)
|
||||
#if defined(POCO_OS_FAMILY_WINDOWS)
|
||||
#define s6_addr16 u.Word
|
||||
|
||||
Reference in New Issue
Block a user