mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 16:48:06 +02:00
see CHANGELOG
- added Poco::istring (case-insensitive string) and Poco::isubstr (case-insensitive substring search) - improved SQLite execute() return (affected rows) value - added SQLite sys.dual (in-memory system table) - applied SF Patch #120: The ExpireLRUCache does not compile with a tuple as key on Visual Studio 2010 - fixed SF Bug #599: JSON::Array and JSON::Object size() member can implicitly lose precision - fixed SF Bug #602: iterating database table rows not correct if no data in table - fixed SF Bug #603: count() is missing in HashMap - fixed GH #23: JSON::Object::stringify throw BadCastException - fixed GH #16: NetworkInterface::firstAddress() should not throw on unconfigured interfaces - Android compile/build support (by Rangel Reale) - TypeHandler::prepare() now takes const-reference
This commit is contained in:
@@ -612,6 +612,19 @@ const IPAddress& NetworkInterface::firstAddress(IPAddress::Family family) const
|
||||
}
|
||||
|
||||
|
||||
void NetworkInterface::firstAddress(IPAddress& addr, IPAddress::Family family) const
|
||||
{
|
||||
try
|
||||
{
|
||||
addr = firstAddress(family);
|
||||
}
|
||||
catch (NotFoundException&)
|
||||
{
|
||||
addr = IPAddress(family);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void NetworkInterface::addAddress(const IPAddress& address)
|
||||
{
|
||||
_pImpl->addAddress(AddressTuple(address, IPAddress(), IPAddress()));
|
||||
|
Reference in New Issue
Block a user