X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fmetaproxy%2Forigin.hpp;fp=include%2Fmetaproxy%2Forigin.hpp;h=2304221d34405c0ae50f4ba7c1b0604fd87bf3fe;hb=73f37c91c144b070020df2f27472c09b62367acf;hp=eb6ac0857a99d0bb9c51dd82b471ba524698aa85;hpb=b1fd6c16f885972e0a68591b115edf120ffd7b21;p=metaproxy-moved-to-github.git diff --git a/include/metaproxy/origin.hpp b/include/metaproxy/origin.hpp index eb6ac08..2304221 100644 --- a/include/metaproxy/origin.hpp +++ b/include/metaproxy/origin.hpp @@ -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;