1 /* $Id: origin.cpp,v 1.3 2006-09-26 13:02:50 marc Exp $
2 Copyright (c) 2005-2006, Index Data.
4 See the LICENSE file for details
8 //#include "config.hpp"
13 namespace mp = metaproxy_1;
15 mp::Origin::Origin(std::string server_host,
16 unsigned int server_port)
17 : m_type(API), m_address(""), m_origin_id(0),
18 m_server_host(server_host), m_server_port(server_port)
22 std::string mp::Origin::server_host() const
27 unsigned int mp::Origin::server_port() const
33 void mp::Origin::set_tcpip_address(std::string addr, unsigned long s)
40 std::ostream& std::operator<<(std::ostream& os, mp::Origin& o)
42 if (o.m_address != "")
46 os << ":" << o.m_origin_id;
53 * indent-tabs-mode: nil
54 * c-file-style: "stroustrup"
56 * vim: shiftwidth=4 tabstop=8 expandtab