1 |
//============================================================================ |
//============================================================================ |
2 |
// $Id: PacketUser.cpp,v 1.13 2010/01/08 13:36:14 mocchiut Exp $ |
// $Id: PacketUser.cpp,v 1.15 2010/01/15 14:31:17 mocchiut Exp $ |
3 |
// Description : |
// Description : |
4 |
//============================================================================ |
//============================================================================ |
5 |
#include "PacketUser.h" |
#include "PacketUser.h" |
31 |
//marco_new_31: |
//marco_new_31: |
32 |
extern char* db_user; |
extern char* db_user; |
33 |
extern char* db_pwd; |
extern char* db_pwd; |
34 |
extern char* connection; |
extern char* pelosconnection; |
35 |
|
|
36 |
//per tenere conto reset obt |
//per tenere conto reset obt |
37 |
extern unsigned long int max_pkt_obt; |
extern unsigned long int max_pkt_obt; |
647 |
} |
} |
648 |
|
|
649 |
CleanDisk(); |
CleanDisk(); |
650 |
if (!single_connection) { |
// if (!single_connection) { |
651 |
CloseDBConnection(); |
// CloseDBConnection(); |
652 |
} |
// } |
653 |
// return; // commented here... |
// return; // commented here... |
654 |
|
|
655 |
}; |
}; |
1461 |
if (do_cont_check) { |
if (do_cont_check) { |
1462 |
//controllo che non sia gia' aperta |
//controllo che non sia gia' aperta |
1463 |
if (!sqlServer) { |
if (!sqlServer) { |
1464 |
sqlServer = TSQLServer::Connect(connection, db_user, db_pwd); |
sqlServer = TSQLServer::Connect(pelosconnection, db_user, db_pwd); |
1465 |
if ((!sqlServer) || (!(sqlServer->IsConnected()))) { |
if ((!sqlServer) || (!(sqlServer->IsConnected()))) { |
1466 |
cout << "Can not connect with MYSQL sever" << endl; |
cout << "Can not connect with MYSQL sever" << endl; |
1467 |
} |
} |