mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
Remove deprecated IPAddress
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -389,7 +389,7 @@ public:
|
||||
testParse <Endpoint> ("Parse Endpoint");
|
||||
}
|
||||
|
||||
IPAddressTests () : UnitTest ("IPAddress", "beast")
|
||||
IPAddressTests () : UnitTest ("IP::Endpoint", "beast")
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include "../detail/Parse.h"
|
||||
|
||||
namespace beast {
|
||||
namespace IP {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user