mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-18 00:15:27 +01:00
fixed SF# 2123301: 1.3.3 Network Interface missing constructor
This commit is contained in:
parent
22e337614c
commit
2a26ce18d0
@ -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.
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user