1 /* $Id: origin.hpp,v 1.1 2006-09-26 13:04:07 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 server_host = "", unsigned int server_port = 0);
27 /// get function - right val in assignment
28 std::string server_host() const;
30 /// get function - right val in assignment
31 unsigned int server_port() const;
33 /// set client IP info - left val in assignment
34 void set_tcpip_address(std::string addr, unsigned long id);
38 std::operator<<(std::ostream& os, metaproxy_1::Origin& o);
45 std::string m_address; // UNIX+TCPIP
46 unsigned long m_origin_id;
47 std::string m_server_host;
48 unsigned int m_server_port;
59 * indent-tabs-mode: nil
60 * c-file-style: "stroustrup"
62 * vim: shiftwidth=4 tabstop=8 expandtab