54 lines
1.3 KiB
C++
54 lines
1.3 KiB
C++
#include "StdAfx.h"
|
|
#include "AppClasSrv.h"
|
|
#include "_app.h"
|
|
|
|
AppClasSrv::AppClasSrv(void)
|
|
{
|
|
key[0]=0;
|
|
user[0]=0;
|
|
path[0]=0;
|
|
|
|
C_app::GetApp()->log.l_lisener=this;
|
|
strcpy(C_app::GetApp()->log.nombre,"LicServer");
|
|
}
|
|
|
|
AppClasSrv::~AppClasSrv(void)
|
|
{
|
|
}
|
|
|
|
void AppClasSrv::log_ext( __time64_t tiemp, char *modulo, char *fmt )
|
|
{
|
|
char tiem[32];
|
|
char str[1024];
|
|
strftime(tiem, 20, "%Y-%m-%d %H:%M:%S", localtime(&tiemp));
|
|
sprintf_s(str,1024, "%s %-12s %s\r\n",
|
|
(char *) LPCTSTR (tiem),
|
|
(char *) LPCTSTR (modulo),
|
|
(char *) LPCTSTR (fmt));
|
|
_tprintf(str);
|
|
}
|
|
//************************************************************************************
|
|
void AppClasSrv::runApp()
|
|
{
|
|
while(true)
|
|
Sleep(1000);
|
|
}
|
|
//************************************************************************************
|
|
bool AppClasSrv::getClave( char* clave, char* producto )
|
|
{
|
|
strcpy(clave, key);
|
|
|
|
return true;
|
|
}
|
|
//************************************************************************************
|
|
void AppClasSrv::muestaError( char* info, char* producto )
|
|
{
|
|
C_log::log("Mens_lic", info);
|
|
}
|
|
//************************************************************************************
|
|
bool AppClasSrv::descargaInstalador( Licencia *lic )
|
|
{
|
|
return true;
|
|
}
|
|
|
|
//************************************************************************************
|