1 /* $Id: origin.cpp,v 1.4 2006-10-02 12:01:06 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 listen_host,
16 unsigned int listen_port)
17 : m_type(API), m_address(""), m_origin_id(0),
18 m_listen_host(listen_host), m_listen_port(listen_port)
22 std::string mp::Origin::listen_host() const
27 std::string & mp::Origin::listen_host()
32 unsigned int mp::Origin::listen_port() const
37 unsigned int & mp::Origin::listen_port()
44 void mp::Origin::set_tcpip_address(std::string addr, unsigned long s)
51 std::ostream& std::operator<<(std::ostream& os, mp::Origin& o)
53 if (o.m_address != "")
57 os << ":" << o.m_origin_id;
64 * indent-tabs-mode: nil
65 * c-file-style: "stroustrup"
67 * vim: shiftwidth=4 tabstop=8 expandtab