X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Forigin.cpp;h=d49ba1e4d2481e1a5b1310a833ec5056755cb1b4;hb=b0c61b7f8b17d876c88347a96c246c47493140da;hp=40716c4a0052dcb3ab9c731c206dd2773f7d40f5;hpb=665559cbc22546e8df69be33a7d492294cab9fb1;p=metaproxy-moved-to-github.git diff --git a/src/origin.cpp b/src/origin.cpp index 40716c4..d49ba1e 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-2010 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 @@ -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 != "")