Working outgoing IP for {http,z3950}_client MP-575
[metaproxy-moved-to-github.git] / include / metaproxy / origin.hpp
index 5355bc3..658872a 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of Metaproxy.
-   Copyright (C) 2005-2013 Index Data
+   Copyright (C) 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
@@ -48,6 +48,9 @@ namespace metaproxy_1 {
         /// get tcpip address
         std::string get_address();
 
+        /// get tcpip address
+        std::string get_bind_address();
+
         void set_custom_session(const std::string &s);
     private:
         friend std::ostream&
@@ -57,6 +60,7 @@ namespace metaproxy_1 {
         unsigned int m_origin_id;
         int m_max_sockets;
         std::string m_custom_session;
+        std::string get_forward_address() const;
     };
 }