#include "at_startup.H"
#include <unistd.h>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <sstream>
#include <cmath>
#include <gmp.h>
#include <list>
#include <set>
#include <ctime>
#include "qsieve.H"
#include "StaticFactorbase.H"
#include "FactorFound.H"
#include <vector>
#include <stack>
#include <algorithm>
#include <sys/utsname.h>
#include <pthread.h>
#include <csignal>
#include "mutex.H"
#include "mpqsPolynom.H"
#include "StaticRelations.H"
#include "DynamicRelations.H"
#include "SpecialRelations.H"
#include "Sieving.H"
#include "ConfigFile.cc"
#include "mpqsStatistics.cc"
#include "modulo.H"
#include "FactorFound.cc"
#include "polynomial.H"
#include "fft_param.cc"
#include "elliptic_curve.H"
#include "elliptic_curve-variant.cc"
#include "ExitManager.cc"
#include "StaticRelations.cc"
#include "easy_factor.H"
#include "CRelation-inc.cc"
#include "parse_term.cc"
#include "SpecialRelations.cc"
#include "Cprocess_clients.cc"
#include "XML_StatusServer.cc"
Go to the source code of this file.
Functions | |
void | kill_all_other_threads () |
void | cleanup_files () |
void | cleanup_memory () |
void | signalhandler (int signr) |
int | main (const int argc, const char *const argv[]) |
Variables | |
TFoundFactors | FoundFactors |
const string | RecoveryFile = "recovery.dat" |
const string | FoundFactorsFile = "FoundFactors.dat" |
const string | StaticRelationsFile = "static_relations.dat" |
const string | SpecialRelationsFile = "special_relations.dat" |
filebuf | Recovery_buffer |
mpz_t | n |
mpz_t | kN |
CmpqsPolynom | Polynom |
const bool | without_multi_combine_init = false |
Definition in file server.cc.
void cleanup_files | ( | ) |
Definition at line 148 of file server.cc.
References std::basic_string< _CharT, _Traits, _Alloc >::c_str(), DynamicRelations::cleanup_files(), SpecialRelations::cleanup_files(), StaticRelations::cleanup_files(), std::basic_filebuf< _CharT, _Traits >::close(), cout, and endl().
void cleanup_memory | ( | ) |
Definition at line 160 of file server.cc.
References StaticRelations::cleanup_memory(), cout, CmpqsFactor::DLP_Threshold, endl(), kN, mpz_clear(), and n.
int main | ( | const int | argc, | |
const char *const | argv[] | |||
) |
Definition at line 182 of file server.cc.
References atexit(), TFoundFactors::AutoLoad(), std::basic_string< _CharT, _Traits, _Alloc >::c_str(), cerr, cleanup_files(), cleanup_memory(), polynomial::clear_dft_tempmemory(), CmpqsPolynom::compute_first_polynomial(), StaticFactorbase::compute_StaticFactorbase(), cout, cout_status(), SpecialRelations::CycleSearch(), determine_best_MPQS_Multiplier(), statistical_data::display_StatusLegend(), CmpqsFactor::DLP_Threshold, DynamicRelationsFile, easy_factor(), endl(), exit(), Factorization_to_file, DynamicRelations::FileBuffer, SpecialRelations::FileBuffer, StaticRelations::FileBuffer, connection_waiter::get_new_client_socket_descriptor(), parse_term::get_number(), CXML_StatusServer::install_XML_StatusServer(), int, kill_all_other_threads(), kN, SpecialRelations::Load(), DynamicRelations::Load(), StaticRelations::Load(), CmpqsPolynom::load_if_available(), LogicalSieveSize, MPQS_Multiplier, mpz_cmp_ui(), mpz_get_d(), mpz_init(), mpz_mul(), mpz_set(), mpz_set_ui(), mpz_sizeinbase(), n, std::basic_filebuf< _CharT, _Traits >::open(), PhysicalSieveSize, PrintHeader(), Cprocess_clients::process_data_stream_ecm(), statistical_data::ProgressStats, Read_ConfigFile(), TFoundFactors::regarding, TFoundFactors::regarding_numeric_value, ExitManager::register_exithandler(), CRelation::SanityCheckRelationsFile(), Cprocess_clients::seek_emergency_handler(), CRelation::seek_emergency_handler, server_port, signalhandler(), SingleLargePrime_Threshold, SkipECM, sqrt(), Cprocess_clients::THREAD_process_data_stream(), and tune_parameters().
void signalhandler | ( | int | signr | ) |
const string FoundFactorsFile = "FoundFactors.dat" |
istream Recovery_from_file& Recovery_buffer |
const string RecoveryFile = "recovery.dat" |
const string SpecialRelationsFile = "special_relations.dat" |
const string StaticRelationsFile = "static_relations.dat" |
const bool without_multi_combine_init = false |