1 /* $Id: origin.hpp,v 1.2 2006-10-02 12:01:06 marc Exp $
2 Copyright (c) 2005-2006, Index Data.
4 See the LICENSE file for details
13 namespace metaproxy_1 {
18 std::ostream& operator<<(std::ostream& os, metaproxy_1::Origin& o);
21 namespace metaproxy_1 {
25 Origin(std::string listen_host = "", unsigned int listen_port = 0);
27 /// get function - right val in assignment
28 std::string listen_host() const;
30 /// set function - left val in assignment
31 std::string & listen_host();
33 /// get function - right val in assignment
34 unsigned int listen_port() const;
36 /// set function - left val in assignment
37 unsigned int & listen_port();
39 /// set client IP info - left val in assignment
40 void set_tcpip_address(std::string addr, unsigned long id);
44 std::operator<<(std::ostream& os, metaproxy_1::Origin& o);
51 std::string m_address; // UNIX+TCPIP
52 unsigned int m_origin_id;
53 std::string m_listen_host;
54 unsigned int m_listen_port;
65 * indent-tabs-mode: nil
66 * c-file-style: "stroustrup"
68 * vim: shiftwidth=4 tabstop=8 expandtab