X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Forigin.hpp;h=29d1124257c2a4675c426a0681f0602649579473;hb=6afc47267f76271433a958b94b2f534dd347c18e;hp=3acfc18f0e5e40604dd7b5a7b6fa6afff83e5e87;hpb=e9530d6289df9b848e4901d7c73f5a2f27706d66;p=metaproxy-moved-to-github.git diff --git a/src/origin.hpp b/src/origin.hpp index 3acfc18..29d1124 100644 --- a/src/origin.hpp +++ b/src/origin.hpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2008 Index Data + Copyright (C) 2005-2010 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 @@ -51,6 +51,14 @@ namespace metaproxy_1 { /// set client IP info - left val in assignment void set_tcpip_address(std::string addr, unsigned long id); + /// set max sockets (for outgoing connections to a given target) + void set_max_sockets(int max_sockets); + + /// set max sockets (for outgoing connections to a given target) + int get_max_sockets(); + + /// get tcpip address + std::string get_address(); private: friend std::ostream& std::operator<<(std::ostream& os, metaproxy_1::Origin& o); @@ -64,6 +72,7 @@ namespace metaproxy_1 { unsigned int m_origin_id; std::string m_listen_host; unsigned int m_listen_port; + int m_max_sockets; }; } @@ -74,8 +83,9 @@ namespace metaproxy_1 { /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil - * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */ +