X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Forigin.hpp;h=eeb4af580c3a5684612beb8c6c93e6c6a9c59df7;hb=d0123337d70b0fb97b578cc57467bb94980f1014;hp=f2b27367343c6fa61c2d6e43c135b9e11c9ee3a6;hpb=637a685d61a9ff0e3f398a59da426979815c4d68;p=metaproxy-moved-to-github.git diff --git a/src/origin.hpp b/src/origin.hpp index f2b2736..eeb4af5 100644 --- a/src/origin.hpp +++ b/src/origin.hpp @@ -1,7 +1,5 @@ -/* $Id: origin.hpp,v 1.4 2007-05-09 21:23:09 adam Exp $ - Copyright (c) 2005-2007, Index Data. - -This file is part of Metaproxy. +/* This file is part of Metaproxy. + Copyright (C) 2005-2009 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 @@ -14,10 +12,9 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with Metaproxy; see the file LICENSE. If not, write to the -Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. - */ +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ #ifndef YP2_ORIGIN_HPP #define YP2_ORIGIN_HPP @@ -54,6 +51,11 @@ 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(); private: friend std::ostream& std::operator<<(std::ostream& os, metaproxy_1::Origin& o); @@ -67,6 +69,7 @@ namespace metaproxy_1 { unsigned int m_origin_id; std::string m_listen_host; unsigned int m_listen_port; + int m_max_sockets; }; } @@ -77,8 +80,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 */ +