Remove two unused Package methods
[metaproxy-moved-to-github.git] / include / metaproxy / origin.hpp
index 29d1124..44eefcf 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of Metaproxy.
-   Copyright (C) 2005-2010 Index Data
+   Copyright (C) 2005-2011 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
@@ -27,7 +27,7 @@ namespace metaproxy_1 {
 }
 
 namespace std {
-    std::ostream& operator<<(std::ostream& os, metaproxy_1::Origin& o);
+    std::ostream& operator<<(std::ostream& os, const metaproxy_1::Origin& o);
 }
 
 namespace metaproxy_1 {
@@ -59,9 +59,11 @@ namespace metaproxy_1 {
         
         /// get tcpip address
         std::string get_address();
+
+        void set_custom_session(const std::string &s);
     private:
         friend std::ostream& 
-        std::operator<<(std::ostream& os,  metaproxy_1::Origin& o);
+        std::operator<<(std::ostream& os, const metaproxy_1::Origin& o);
         
         enum origin_t {
             API,
@@ -73,6 +75,7 @@ namespace metaproxy_1 {
         std::string m_listen_host;
         unsigned int m_listen_port;
         int m_max_sockets;
+        std::string m_custom_session;
     };
 
 }