Remove deprecated IPAddress

This commit is contained in:
Vinnie Falco
2014-02-17 08:50:32 -08:00
parent e219008320
commit c48b9244f2
5 changed files with 10 additions and 14 deletions

View File

@@ -23,15 +23,9 @@
#include "net/BufferType.h"
#include "net/DynamicBuffer.h"
#include "net/IPAddress.h"
#include "net/IPEndpoint.h"
#include "net/IPAddressV4.h"
#include "net/IPAddressV6.h"
#include "net/IPEndpoint.h"
// VFALCO DEPRECATED, REMOVE ASAP!
namespace beast {
typedef IP::Endpoint IPAddress;
}
#endif

View File

@@ -22,7 +22,7 @@
#include "Collector.h"
#include "../net/IPAddress.h"
#include "../net/IPEndpoint.h"
namespace beast {
namespace insight {
@@ -39,7 +39,7 @@ public:
@param prefix A string pre-pended before each metric name.
@param journal Destination for logging output.
*/
static std::shared_ptr <StatsDCollector> New (IPAddress const& address,
static std::shared_ptr <StatsDCollector> New (IP::Endpoint const& address,
std::string const& prefix, Journal journal);
};

View File

@@ -200,7 +200,7 @@ private:
typedef SharedData <StateType> State;
Journal m_journal;
IPAddress m_address;
IP::Endpoint m_address;
std::string m_prefix;
boost::asio::io_service m_io_service;
boost::optional <boost::asio::io_service::work> m_work;
@@ -213,7 +213,7 @@ private:
std::thread m_thread;
static boost::asio::ip::udp::endpoint to_endpoint (
IPAddress const &address)
IP::Endpoint const &address)
{
if (address.is_v4 ())
{
@@ -230,7 +230,7 @@ private:
public:
StatsDCollectorImp (
IPAddress const& address,
IP::Endpoint const& address,
std::string const& prefix,
Journal journal)
: m_journal (journal)
@@ -697,7 +697,7 @@ void StatsDMeterImpl::do_process ()
//------------------------------------------------------------------------------
std::shared_ptr <StatsDCollector> StatsDCollector::New (
IPAddress const& address, std::string const& prefix, Journal journal)
IP::Endpoint const& address, std::string const& prefix, Journal journal)
{
return std::make_shared <detail::StatsDCollectorImp> (
address, prefix, journal);

View File

@@ -389,7 +389,7 @@ public:
testParse <Endpoint> ("Parse Endpoint");
}
IPAddressTests () : UnitTest ("IPAddress", "beast")
IPAddressTests () : UnitTest ("IP::Endpoint", "beast")
{
}
};

View File

@@ -17,6 +17,8 @@
*/
//==============================================================================
#include "../detail/Parse.h"
namespace beast {
namespace IP {