Sursa:ATR
Continut: Ascuns
Trebuie sa multumesti autorului pentru a putea vedea mesajul.
Trebuie sa multumesti autorului pentru a putea vedea mesajul.





incearca asa:.Sergiu scrie: ↑01 Feb 2021, 00:39 VFeb 3 03:07:09 :: <shutdown> Destroying COXEventManager...
Feb 3 03:07:09 :: <shutdown> Disabling signal timer...
Feb 3 03:07:09 :: <shutdown> Shutting down CHARACTER_MANAGER...
Feb 3 03:07:09 :: <shutdown> Shutting down ITEM_MANAGER...
Feb 3 03:07:09 :: <shutdown> Flushing db_clientdesc...
Feb 3 03:07:09 :: FLUSH START 46
Feb 3 03:07:09 :: FLUSH SUCCESS
Feb 3 03:07:09 :: <shutdown> Flushing p2p_manager...
Feb 3 03:07:09 :: <shutdown> Destroying CShopManager...
Feb 3 03:07:09 :: <shutdown> Destroying CHARACTER_MANAGER...
Feb 3 03:07:09 :: <shutdown> Destroying ITEM_MANAGER...
Feb 3 03:07:09 :: <shutdown> Destroying DESC_MANAGER...
Feb 3 03:07:09 :: PARTY Disable
Feb 3 03:07:09 :: SYSTEM: closing client socket. DESC #15
Feb 3 03:07:09 :: P2P Acceptor closed (host 25.70.39.100)
Feb 3 03:07:09 :: SYSTEM: closing p2p socket. DESC #16
Feb 3 03:07:09 :: <shutdown> Destroying quest::CQuestManager...
Feb 3 03:07:09 :: <shutdown> Destroying building::CManager...
Feb 3 03:07:09 :: <shutdown> regen_free()...
Feb 3 03:07:09 :: <shutdown> Closing sockets...
Feb 3 03:07:09 :: <shutdown> fdwatch_delete()...
Feb 3 03:07:09 :: <shutdown> event_destroy()...
Feb 3 03:07:09 :: <shutdown> CTextFileLoader::DestroySystem()...
Feb 3 03:07:09 :: <shutdown> thecore_destroy()...
SYSERR: Feb 3 03:07:09 :: pid_deinit:
Nu mai zic nimic
void destroy()
{
sys_log(0, "<shutdown> Canceling ReloadSpamEvent...");
CancelReloadSpamEvent();
sys_log(0, "<shutdown> regen_free()...");
regen_free();
sys_log(0, "<shutdown> Closing sockets...");
socket_close(tcp_socket);
#ifndef __UDP_BLOCK__
socket_close(udp_socket);
#endif
socket_close(p2p_socket);
sys_log(0, "<shutdown> fdwatch_delete()...");
fdwatch_delete(main_fdw);
sys_log(0, "<shutdown> event_destroy()...");
event_destroy();
sys_log(0, "<shutdown> CTextFileLoader::DestroySystem()...");
CTextFileLoader::DestroySystem();
sys_log(0, "<shutdown> thecore_destroy()...");
thecore_destroy();
}
int idle()
{
static struct timeval pta = { 0, 0 };
static int process_time_count = 0;
struct timeval now;
if (pta.tv_sec == 0)
gettimeofday(&pta, (struct timezone *) 0);
int passed_pulses;
if (!(passed_pulses = thecore_idle()))
return 0;
assert(passed_pulses > 0);
DWORD t;
while (passed_pulses--) {
heartbeat(thecore_heart, ++thecore_heart->pulse);
// To reduce the possibility of abort() in checkpointing
thecore_tick();
}
t = get_dword_time();
CHARACTER_MANAGER::instance().Update(thecore_heart->pulse);
db_clientdesc->Update(t);
s_dwProfiler[PROF_CHR_UPDATE] += (get_dword_time() - t);
t = get_dword_time();
if (!io_loop(main_fdw)) return 0;
s_dwProfiler[PROF_IO] += (get_dword_time() - t);
log_rotate();
gettimeofday(&now, (struct timezone *) 0);
++process_time_count;
if (now.tv_sec - pta.tv_sec > 0)
{
pt_log("[%3d] event %5d/%-5d idle %-4ld event %-4ld heartbeat %-4ld I/O %-4ld chrUpate %-4ld | WRITE: %-7d | PULSE: %d",
process_time_count,
num_events_called,
event_count(),
thecore_profiler[PF_IDLE],
s_dwProfiler[PROF_EVENT],
s_dwProfiler[PROF_HEARTBEAT],
s_dwProfiler[PROF_IO],
s_dwProfiler[PROF_CHR_UPDATE],
current_bytes_written,
thecore_pulse());
num_events_called = 0;
current_bytes_written = 0;
process_time_count = 0;
gettimeofday(&pta, (struct timezone *) 0);
memset(&thecore_profiler[0], 0, sizeof(thecore_profiler));
memset(&s_dwProfiler[0], 0, sizeof(s_dwProfiler));
}
#ifdef __WIN32__
if (_kbhit()) {
int c = _getch();
switch (c) {
case 0x1b: // Esc
return 0; // shutdown
break;
default:
break;
}
}
#endif
return 1;
}
in desc.cpp cauta void DESC::Destroy() si inlocuieste tot
void DESC::Destroy()
{
if (m_bDestroyed) {
return;
}
m_bDestroyed = true;
if (m_pkLoginKey)
m_pkLoginKey->Expire();
if (GetAccountTable().id)
DESC_MANAGER::instance().DisconnectAccount(GetAccountTable().login);
if (m_pLogFile)
{
fclose(m_pLogFile);
m_pLogFile = NULL;
}
if (m_lpCharacter)
{
m_lpCharacter->Disconnect("DESC::~DESC");
m_lpCharacter = NULL;
}
SAFE_BUFFER_DELETE(m_lpOutputBuffer);
SAFE_BUFFER_DELETE(m_lpInputBuffer);
event_cancel(&m_pkPingEvent);
event_cancel(&m_pkDisconnectEvent);
if (!g_bAuthServer)
{
if (m_accountTable.login[0] && m_accountTable.passwd[0])
{
TLogoutPacket pack;
strlcpy(pack.login, m_accountTable.login, sizeof(pack.login));
strlcpy(pack.passwd, m_accountTable.passwd, sizeof(pack.passwd));
db_clientdesc->DBPacket(HEADER_GD_LOGOUT, m_dwHandle, &pack, sizeof(TLogoutPacket));
}
CShutdownManager::instance().RemoveDesc((LPDESC)this);
}
if (m_sock != INVALID_SOCKET)
{
sys_log(0, "SYSTEM: closing socket. DESC #%d", m_sock);
Log("SYSTEM: closing socket. DESC #%d", m_sock);
fdwatch_del_fd(m_lpFdw, m_sock);
#ifdef _IMPROVED_PACKET_ENCRYPTION_
cipher_.CleanUp();
#endif
socket_close(m_sock);
m_sock = INVALID_SOCKET;
}
m_seq_vector.clear();
}
poti schimba si portul p2p,parola din config.cppUtilizatori ce ce navighează pe acest forum: darkallience455, Semrush [Bot] și 5 vizitatori