server.cc File Reference

main implementation file of Qsieve server More...

#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"

Include dependency graph for server.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


Detailed Description

main implementation file of Qsieve server

Definition in file server.cc.


Function Documentation

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().

Here is the call graph for this function:

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.

Here is the call graph for this function:

void kill_all_other_threads (  ) 

Definition at line 140 of file server.cc.

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().

Here is the call graph for this function:

void signalhandler ( int  signr  ) 

Definition at line 171 of file server.cc.

References cout, endl(), and exit().

Referenced by main().

Here is the call graph for this function:


Variable Documentation

TFoundFactors FoundFactors

Definition at line 48 of file server.cc.

const string FoundFactorsFile = "FoundFactors.dat"

Definition at line 66 of file server.cc.

mpz_t kN

Definition at line 91 of file server.cc.

mpz_t n

Definition at line 91 of file server.cc.

CmpqsPolynom Polynom

Definition at line 103 of file server.cc.

istream Recovery_from_file& Recovery_buffer

Definition at line 83 of file server.cc.

const string RecoveryFile = "recovery.dat"

Definition at line 65 of file server.cc.

const string SpecialRelationsFile = "special_relations.dat"

Definition at line 68 of file server.cc.

const string StaticRelationsFile = "static_relations.dat"

Definition at line 67 of file server.cc.

const bool without_multi_combine_init = false

Definition at line 129 of file server.cc.


Generated on Wed Nov 7 23:30:29 2007 for Qsieve by  doxygen 1.5.4