Subversion Repositories tpanel

Rev

Rev 134 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 134 Rev 142
Line 55... Line 55...
55
#include "tdirectory.h"
55
#include "tdirectory.h"
56
#include "tresources.h"
56
#include "tresources.h"
57
#include "texpand.h"
57
#include "texpand.h"
58
#include "tsocket.h"
58
#include "tsocket.h"
59
#include "texcept.h"
59
#include "texcept.h"
-
 
60
#include "tpagemanager.h"
60
 
61
 
61
using namespace amx;
62
using namespace amx;
62
using namespace std;
63
using namespace std;
63
 
64
 
64
using placeholders::_1;
65
using placeholders::_1;
Line 103... Line 104...
103
amx::TAmxNet *gAmxNet = nullptr;
104
amx::TAmxNet *gAmxNet = nullptr;
104
static bool __CommValid = false;
105
static bool __CommValid = false;
105
std::map<ulong, FUNC_NETWORK_t> mFuncsNetwork;
106
std::map<ulong, FUNC_NETWORK_t> mFuncsNetwork;
106
std::map<ulong, FUNC_TIMER_t> mFuncsTimer;
107
std::map<ulong, FUNC_TIMER_t> mFuncsTimer;
107
 
108
 
-
 
109
extern TPageManager *gPageManager;
-
 
110
 
108
TAmxNet::TAmxNet()
111
TAmxNet::TAmxNet()
109
{
112
{
110
    DECL_TRACER("TAmxNet::TAmxNet()");
113
    DECL_TRACER("TAmxNet::TAmxNet()");
111
 
114
 
112
    init();
115
    init();
Line 370... Line 373...
370
        }
373
        }
371
        else if (!mSocket)
374
        else if (!mSocket)
372
            break;
375
            break;
373
 
376
 
374
        sendAllFuncNetwork(NSTATE_ONLINE);
377
        sendAllFuncNetwork(NSTATE_ONLINE);
-
 
378
 
-
 
379
        if (__CommValid && isRunning() && gPageManager && gPageManager->getRepaintWindows())
-
 
380
            gPageManager->getRepaintWindows()();
-
 
381
 
375
        handle_connect();
382
        handle_connect();
376
        std::this_thread::sleep_for(std::chrono::seconds(mWaitTime));
383
        std::this_thread::sleep_for(std::chrono::seconds(mWaitTime));
377
        setWaitTime(WAIT_RESET);
384
        setWaitTime(WAIT_RESET);
378
        MSG_INFO("Network will be reestablished ...");
385
        MSG_INFO("Network will be reestablished ...");
379
    }
386
    }