crawlserv++  [under development]
Application for crawling and analyzing textual content of websites.
NetworkSettings.hpp
Go to the documentation of this file.
1 /*
2  *
3  * ---
4  *
5  * Copyright (C) 2020 Anselm Schmidt (ans[ät]ohai.su)
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version in addition to the terms of any
11  * licences already herein identified.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <https://www.gnu.org/licenses/>.
20  *
21  * ---
22  *
23  * NetworkSettings.hpp
24  *
25  * Network settings transferred from the server to threads using networking, i.e. crawler and extractor
26  * (default proxy, TOR control server, port and password).
27  *
28  * Created on: Oct 13, 2018
29  * Author: ans
30  */
31 
32 #ifndef STRUCT_NETWORKSETTINGS_HPP_
33 #define STRUCT_NETWORKSETTINGS_HPP_
34 
35 #include <cstdint> // std::uint16_t
36 #include <string> // std::string
37 
38 namespace crawlservpp::Struct {
39 
41 
49  struct NetworkSettings {
52 
54  std::string defaultProxy;
55 
57  std::string torControlServer;
58 
60  std::uint16_t torControlPort{};
61 
63  std::string torControlPassword;
64  };
65 
66 } /* namespace crawlservpp::Struct */
67 
68 #endif /* STRUCT_NETWORKSETTINGS_HPP_ */
std::string torControlServer
The host name of the TOR control server.
Definition: NetworkSettings.hpp:57
Network settings containing the default proxy as well as host, port, and password of the TOR control ...
Definition: NetworkSettings.hpp:49
std::string torControlPassword
The password used by the TOR control server.
Definition: NetworkSettings.hpp:63
std::uint16_t torControlPort
The port used by the TOR control server.
Definition: NetworkSettings.hpp:60
std::string defaultProxy
The host name and the port of the default proxy to be used.
Definition: NetworkSettings.hpp:54
Namespace for data structures.
Definition: AlgoThreadProperties.hpp:43