/* This file is part of Metaproxy.
- Copyright (C) 2005-2008 Index Data
+ 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
/// 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);
unsigned int m_origin_id;
std::string m_listen_host;
unsigned int m_listen_port;
+ int m_max_sockets;
};
}
/*
* 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
*/
+