~ubuntu-branches/debian/lenny/linuxdcpp/lenny

« back to all changes in this revision

Viewing changes to client/DCPlusPlus.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2006-12-08 15:50:58 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20061208155058-tgl4tv9qhurow54z
Tags: 0.0.1.cvs20061208-1
* New upstream release
* Dropped patch for tightening linking, a solution has been implemented
  upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#include "SettingsManager.h"
34
34
#include "FinishedManager.h"
35
35
#include "ADLSearch.h"
36
 
#include "SSLSocket.h"
37
36
 
38
37
#include "StringTokenizer.h"
39
38
 
 
39
#ifdef _STLP_DEBUG
 
40
void __stl_debug_terminate() {
 
41
        int* x = 0;
 
42
        *x = 0;
 
43
}
 
44
#endif
 
45
 
40
46
void startup(void (*f)(void*, const string&), void* p) {
41
47
        // "Dedicated to the near-memory of Nev. Let's start remembering people while they're still alive."
42
48
        // Nev's great contribution to dc++
61
67
        QueueManager::newInstance();
62
68
        FinishedManager::newInstance();
63
69
        ADLSearchManager::newInstance();
64
 
        //SSLSocketFactory::newInstance();
65
70
 
66
71
        SettingsManager::getInstance()->load();
67
72
 
70
75
        }
71
76
 
72
77
        FavoriteManager::getInstance()->load();
73
 
        //SSLSocketFactory::getInstance()->loadCertificates();
 
78
        CryptoManager::getInstance()->loadCertificates();
74
79
 
75
80
        if(f != NULL)
76
81
                (*f)(p, STRING(HASH_DATABASE));
92
97
        BufferedSocket::waitShutdown();
93
98
 
94
99
        SettingsManager::getInstance()->save();
95
 
        
96
 
        //SSLSocketFactory::deleteInstance();
 
100
 
97
101
        ADLSearchManager::deleteInstance();
98
102
        FinishedManager::deleteInstance();
99
103
        ShareManager::deleteInstance();