X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=include%2Fmetaproxy%2Forigin.hpp;h=5355bc3b2e13a751b0eee9f6995bf63ccdb9de58;hb=a58c13aa3753e1d549ad643d3d7268a8ca431714;hp=603f378fea33f7f882c7be8f37a0f7753bbb3337;hpb=b6ea100d3fb9f64ca9fd88606c77ba1d715224ea;p=metaproxy-moved-to-github.git diff --git a/include/metaproxy/origin.hpp b/include/metaproxy/origin.hpp index 603f378..5355bc3 100644 --- a/include/metaproxy/origin.hpp +++ b/include/metaproxy/origin.hpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2011 Index Data + Copyright (C) 2005-2013 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 @@ -31,11 +31,11 @@ namespace std { } namespace metaproxy_1 { - + class Origin { public: Origin(); - + /// set client IP info - left val in assignment void set_tcpip_address(std::string addr, unsigned long id); @@ -44,15 +44,15 @@ namespace metaproxy_1 { /// set max sockets (for outgoing connections to a given target) int get_max_sockets(); - + /// get tcpip address std::string get_address(); void set_custom_session(const std::string &s); private: - friend std::ostream& + friend std::ostream& std::operator<<(std::ostream& os, const metaproxy_1::Origin& o); - + std::string m_address; unsigned int m_origin_id; int m_max_sockets;