X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Forigin.cpp;h=500a446c72173282a03ba658cc9e3eef81f0a913;hb=e97027abe6e12ad59d16b475c28e3767c83b1343;hp=cf932d39a5d359d2c01ca8dccbd57d0af218acde;hpb=09ce8a48eb9d2947cd019f9b8adb6513941c2211;p=metaproxy-moved-to-github.git diff --git a/src/origin.cpp b/src/origin.cpp index cf932d3..500a446 100644 --- a/src/origin.cpp +++ b/src/origin.cpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2008 Index Data + Copyright (C) 2005-2011 Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -16,8 +16,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -//#include "config.hpp" -#include "origin.hpp" +#include "config.hpp" +#include #include @@ -67,6 +67,11 @@ void mp::Origin::set_tcpip_address(std::string addr, unsigned long s) m_origin_id = s; } +std::string mp::Origin::get_address() +{ + return m_address; +} + std::ostream& std::operator<<(std::ostream& os, mp::Origin& o) { if (o.m_address != "") @@ -80,8 +85,9 @@ std::ostream& std::operator<<(std::ostream& os, mp::Origin& o) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil - * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ +