fixed SF# 2123301: 1.3.3 Network Interface missing constructor

This commit is contained in:
Guenter Obiltschnig 2008-09-26 09:32:54 +00:00
parent 22e337614c
commit 2a26ce18d0
2 changed files with 20 additions and 2 deletions

View File

@ -1,7 +1,7 @@
//
// NetworkInterface.h
//
// $Id: //poco/1.3/Net/include/Poco/Net/NetworkInterface.h#5 $
// $Id: //poco/1.3/Net/include/Poco/Net/NetworkInterface.h#6 $
//
// Library: Net
// Package: Sockets
@ -155,6 +155,12 @@ protected:
NetworkInterface(const std::string& name, const std::string& displayName, const IPAddress& address, const IPAddress& subnetMask, const IPAddress& broadcastAddress, int index = -1);
/// Creates the NetworkInterface.
NetworkInterface(const std::string& name, const IPAddress& address, int index = -1);
/// Creates the NetworkInterface.
NetworkInterface(const std::string& name, const IPAddress& address, const IPAddress& subnetMask, const IPAddress& broadcastAddress, int index = -1);
/// Creates the NetworkInterface.
IPAddress interfaceNameToAddress(const std::string& interfaceName) const;
/// Determines the IPAddress bound to the interface with the given name.

View File

@ -1,7 +1,7 @@
//
// NetworkInterface.cpp
//
// $Id: //poco/1.3/Net/src/NetworkInterface.cpp#7 $
// $Id: //poco/1.3/Net/src/NetworkInterface.cpp#8 $
//
// Library: Net
// Package: Sockets
@ -209,6 +209,18 @@ NetworkInterface::NetworkInterface(const std::string& name, const std::string& d
}
NetworkInterface::NetworkInterface(const std::string& name, const IPAddress& address, int index):
_pImpl(new NetworkInterfaceImpl(name, name, address, index))
{
}
NetworkInterface::NetworkInterface(const std::string& name, const IPAddress& address, const IPAddress& subnetMask, const IPAddress& broadcastAddress, int index):
_pImpl(new NetworkInterfaceImpl(name, name, address, subnetMask, broadcastAddress, index))
{
}
NetworkInterface::~NetworkInterface()
{
_pImpl->release();