compilacion a v2017 partiendo de la v2008
commit
19abe62f6d
|
|
@ -0,0 +1,12 @@
|
||||||
|
/Debug/*
|
||||||
|
/FileTransfer/Debug/*
|
||||||
|
/TransferSrv/Debug/*
|
||||||
|
/TransferSrv.ncb
|
||||||
|
/TransferSrv.suo
|
||||||
|
/FileTransfer/x64/*
|
||||||
|
/FileTransfer/Release/*
|
||||||
|
/TransferSrv/Release/*
|
||||||
|
/TransferSrv/x64/*
|
||||||
|
/FileTransfer/)x64/*
|
||||||
|
/FileTransfer/FileTransfer.aps
|
||||||
|
/TransferSrv/TransferSrv.aps
|
||||||
|
|
@ -0,0 +1,105 @@
|
||||||
|
#include "StdAfx.h"
|
||||||
|
#include "DescargadorFiles.h"
|
||||||
|
#include "_log.h"
|
||||||
|
#include "dir_manager.h"
|
||||||
|
|
||||||
|
DescargadorFiles::DescargadorFiles(void)
|
||||||
|
{
|
||||||
|
errorMsg[0]=dirDest[0]=srv[0]=key[0]=usu[0]=0;
|
||||||
|
porcen =0;
|
||||||
|
puerto =0;
|
||||||
|
cancela =false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
DescargadorFiles::~DescargadorFiles(void)
|
||||||
|
{
|
||||||
|
cancela = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescargadorFiles::run()
|
||||||
|
{
|
||||||
|
FileTransferClient ft;
|
||||||
|
char orig[256], dst[256];
|
||||||
|
Sleep(100);
|
||||||
|
ft.setLisener(this);
|
||||||
|
if(!ft.conecta(srv,puerto))
|
||||||
|
{
|
||||||
|
if(lisener)
|
||||||
|
lisener->finTransfer(false);
|
||||||
|
C_log::log("PideFile", "Error al conectar a: %s:%ld",srv, puerto);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!ft.Presenta(usu, key))
|
||||||
|
{
|
||||||
|
if(lisener)
|
||||||
|
lisener->finTransfer(false);
|
||||||
|
C_log::log("PideFile", "Error al presentarse a: %s" ,usu);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
double porcenFile = 100./files->n_i;
|
||||||
|
for (int i =0; i< files->n_i && !cancela; i++)
|
||||||
|
{
|
||||||
|
porcen = i/porcenFile;
|
||||||
|
sprintf(dst, "%s%s",dirDest,Cdir_manager::nombre_archivo(files->get(i),orig));
|
||||||
|
if(!ft.DescargaFile(files->get(i), dst))
|
||||||
|
{
|
||||||
|
if(lisener)
|
||||||
|
lisener->finTransfer(false);
|
||||||
|
C_log::log("PideFile", "Error al descargar orig: %s dest%ld",files->get(i), dst);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!ft.desconecta())
|
||||||
|
{
|
||||||
|
C_log::log("PideFile", "Error al desconectar a: %s:%ld",srv, puerto);
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(lisener)
|
||||||
|
lisener->finTransfer(true);
|
||||||
|
C_log::log("PideFile", "final Feliz");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescargadorFiles::setServer( char* ip, int puerto, char *key, char* usu )
|
||||||
|
{
|
||||||
|
strcpy(srv, ip);
|
||||||
|
strcpy(this->key, key);
|
||||||
|
strcpy(this->usu, usu);
|
||||||
|
|
||||||
|
this->puerto = puerto;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
bool DescargadorFiles::iniciaDescarga( StrArray *filesOrig,char *dirDest, FileTransferClientLisener *lisener )
|
||||||
|
{
|
||||||
|
strcpy(this->dirDest, dirDest);
|
||||||
|
this->lisener = lisener;
|
||||||
|
files = filesOrig;
|
||||||
|
porcen =0;
|
||||||
|
cancela = false;
|
||||||
|
return lanza() == TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescargadorFiles::cancelaDesc()
|
||||||
|
{
|
||||||
|
cancela= true;
|
||||||
|
join();
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescargadorFiles::setStatus( double porcent )
|
||||||
|
{
|
||||||
|
if(lisener)
|
||||||
|
lisener->setStatus(porcent+this->porcen);
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescargadorFiles::finTransfer( bool finalFeliz )
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
#pragma once
|
||||||
|
#include "th.h"
|
||||||
|
#include "StrArray.h"
|
||||||
|
#include "FileTransferClient.h"
|
||||||
|
class FileTransferClient;
|
||||||
|
|
||||||
|
class FT_EXPORT DescargadorFiles: public Cth, public FileTransferClientLisener
|
||||||
|
{
|
||||||
|
double porcen;//muestra el porcentaje de descargas
|
||||||
|
char errorMsg[512];
|
||||||
|
StrArray *files;
|
||||||
|
char dirDest[256];
|
||||||
|
char srv[256];
|
||||||
|
int puerto;
|
||||||
|
char key[32];
|
||||||
|
char usu[32];
|
||||||
|
bool cancela;
|
||||||
|
FileTransferClientLisener *lisener;
|
||||||
|
public:
|
||||||
|
DescargadorFiles(void);
|
||||||
|
~DescargadorFiles(void);
|
||||||
|
void setServer(char* ip, int puerto, char *key, char* usu);
|
||||||
|
bool iniciaDescarga(StrArray *filesOrig,char *dirDest,FileTransferClientLisener *lisener = NULL);
|
||||||
|
void cancelaDesc();
|
||||||
|
virtual void run();
|
||||||
|
|
||||||
|
virtual void setStatus( double porcent );
|
||||||
|
virtual void finTransfer( bool finalFeliz );
|
||||||
|
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,69 @@
|
||||||
|
// FileTransfer.cpp : Defines the initialization routines for the DLL.
|
||||||
|
//
|
||||||
|
|
||||||
|
#include "stdafx.h"
|
||||||
|
#include "FileTransfer.h"
|
||||||
|
|
||||||
|
#ifdef _DEBUG
|
||||||
|
#define new DEBUG_NEW
|
||||||
|
#endif
|
||||||
|
|
||||||
|
//
|
||||||
|
//TODO: If this DLL is dynamically linked against the MFC DLLs,
|
||||||
|
// any functions exported from this DLL which call into
|
||||||
|
// MFC must have the AFX_MANAGE_STATE macro added at the
|
||||||
|
// very beginning of the function.
|
||||||
|
//
|
||||||
|
// For example:
|
||||||
|
//
|
||||||
|
// extern "C" BOOL PASCAL EXPORT ExportedFunction()
|
||||||
|
// {
|
||||||
|
// AFX_MANAGE_STATE(AfxGetStaticModuleState());
|
||||||
|
// // normal function body here
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// It is very important that this macro appear in each
|
||||||
|
// function, prior to any calls into MFC. This means that
|
||||||
|
// it must appear as the first statement within the
|
||||||
|
// function, even before any object variable declarations
|
||||||
|
// as their constructors may generate calls into the MFC
|
||||||
|
// DLL.
|
||||||
|
//
|
||||||
|
// Please see MFC Technical Notes 33 and 58 for additional
|
||||||
|
// details.
|
||||||
|
//
|
||||||
|
|
||||||
|
// CFileTransferApp
|
||||||
|
|
||||||
|
BEGIN_MESSAGE_MAP(CFileTransferApp, CWinApp)
|
||||||
|
END_MESSAGE_MAP()
|
||||||
|
|
||||||
|
|
||||||
|
// CFileTransferApp construction
|
||||||
|
|
||||||
|
CFileTransferApp::CFileTransferApp()
|
||||||
|
{
|
||||||
|
// TODO: add construction code here,
|
||||||
|
// Place all significant initialization in InitInstance
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// The one and only CFileTransferApp object
|
||||||
|
|
||||||
|
CFileTransferApp theApp;
|
||||||
|
|
||||||
|
|
||||||
|
// CFileTransferApp initialization
|
||||||
|
|
||||||
|
BOOL CFileTransferApp::InitInstance()
|
||||||
|
{
|
||||||
|
CWinApp::InitInstance();
|
||||||
|
|
||||||
|
if (!AfxSocketInit())
|
||||||
|
{
|
||||||
|
AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
; FileTransfer.def : Declares the module parameters for the DLL.
|
||||||
|
|
||||||
|
LIBRARY "FileTransfer"
|
||||||
|
|
||||||
|
EXPORTS
|
||||||
|
; Explicit exports can go here
|
||||||
|
|
@ -0,0 +1,27 @@
|
||||||
|
// FileTransfer.h : main header file for the FileTransfer DLL
|
||||||
|
//
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#ifndef __AFXWIN_H__
|
||||||
|
#error "include 'stdafx.h' before including this file for PCH"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "resource.h" // main symbols
|
||||||
|
|
||||||
|
|
||||||
|
// CFileTransferApp
|
||||||
|
// See FileTransfer.cpp for the implementation of this class
|
||||||
|
//
|
||||||
|
|
||||||
|
class CFileTransferApp : public CWinApp
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
CFileTransferApp();
|
||||||
|
|
||||||
|
// Overrides
|
||||||
|
public:
|
||||||
|
virtual BOOL InitInstance();
|
||||||
|
|
||||||
|
DECLARE_MESSAGE_MAP()
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,140 @@
|
||||||
|
// Microsoft Visual C++ generated resource script.
|
||||||
|
//
|
||||||
|
#include "resource.h"
|
||||||
|
|
||||||
|
#define APSTUDIO_READONLY_SYMBOLS
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// Generated from the TEXTINCLUDE 2 resource.
|
||||||
|
//
|
||||||
|
#ifndef APSTUDIO_INVOKED
|
||||||
|
#include "targetver.h"
|
||||||
|
#endif
|
||||||
|
#include "afxres.h"
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// English (U.S.) resources
|
||||||
|
|
||||||
|
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||||
|
#ifdef _WIN32
|
||||||
|
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||||
|
#pragma code_page(1252)
|
||||||
|
#endif //_WIN32
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// Version
|
||||||
|
//
|
||||||
|
|
||||||
|
VS_VERSION_INFO VERSIONINFO
|
||||||
|
FILEVERSION 1,0,0,1
|
||||||
|
PRODUCTVERSION 1,0,0,1
|
||||||
|
FILEFLAGSMASK 0x3fL
|
||||||
|
#ifdef _DEBUG
|
||||||
|
FILEFLAGS 0x1L
|
||||||
|
#else
|
||||||
|
FILEFLAGS 0x0L
|
||||||
|
#endif
|
||||||
|
FILEOS 0x4L
|
||||||
|
FILETYPE 0x2L
|
||||||
|
FILESUBTYPE 0x0L
|
||||||
|
BEGIN
|
||||||
|
BLOCK "StringFileInfo"
|
||||||
|
BEGIN
|
||||||
|
BLOCK "040904e4"
|
||||||
|
BEGIN
|
||||||
|
VALUE "CompanyName", "Narvaling"
|
||||||
|
VALUE "FileDescription", "Librería para transferencia de archivos"
|
||||||
|
VALUE "FileVersion", "1.0.0.1"
|
||||||
|
VALUE "InternalName", "FileTransfer.dll"
|
||||||
|
VALUE "LegalCopyright", "(c) Narvaling All rights reserved."
|
||||||
|
VALUE "OriginalFilename", "FileTransfer.dll"
|
||||||
|
VALUE "ProductName", "FileTransfer"
|
||||||
|
VALUE "ProductVersion", "1.0.0.1"
|
||||||
|
END
|
||||||
|
END
|
||||||
|
BLOCK "VarFileInfo"
|
||||||
|
BEGIN
|
||||||
|
VALUE "Translation", 0x409, 1252
|
||||||
|
END
|
||||||
|
END
|
||||||
|
|
||||||
|
#endif // English (U.S.) resources
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Spanish resources
|
||||||
|
|
||||||
|
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ESN)
|
||||||
|
#ifdef _WIN32
|
||||||
|
LANGUAGE LANG_SPANISH, SUBLANG_SPANISH_MODERN
|
||||||
|
#pragma code_page(1252)
|
||||||
|
#endif //_WIN32
|
||||||
|
|
||||||
|
#ifdef APSTUDIO_INVOKED
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// TEXTINCLUDE
|
||||||
|
//
|
||||||
|
|
||||||
|
1 TEXTINCLUDE
|
||||||
|
BEGIN
|
||||||
|
"resource.h\0"
|
||||||
|
END
|
||||||
|
|
||||||
|
2 TEXTINCLUDE
|
||||||
|
BEGIN
|
||||||
|
"#ifndef APSTUDIO_INVOKED\r\n"
|
||||||
|
"#include ""targetver.h""\r\n"
|
||||||
|
"#endif\r\n"
|
||||||
|
"#include ""afxres.h""\r\n"
|
||||||
|
"\0"
|
||||||
|
END
|
||||||
|
|
||||||
|
3 TEXTINCLUDE
|
||||||
|
BEGIN
|
||||||
|
"#define _AFX_NO_SPLITTER_RESOURCES\r\n"
|
||||||
|
"#define _AFX_NO_OLE_RESOURCES\r\n"
|
||||||
|
"#define _AFX_NO_TRACKER_RESOURCES\r\n"
|
||||||
|
"#define _AFX_NO_PROPERTY_RESOURCES\r\n"
|
||||||
|
"\r\n"
|
||||||
|
"#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
|
||||||
|
"LANGUAGE 9, 1\r\n"
|
||||||
|
"#pragma code_page(1252)\r\n"
|
||||||
|
"#include ""res\\FileTransfer.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
|
||||||
|
"#include ""afxres.rc"" // Standard components\r\n"
|
||||||
|
"#endif\r\n"
|
||||||
|
"\0"
|
||||||
|
END
|
||||||
|
|
||||||
|
#endif // APSTUDIO_INVOKED
|
||||||
|
|
||||||
|
#endif // Spanish resources
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef APSTUDIO_INVOKED
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// Generated from the TEXTINCLUDE 3 resource.
|
||||||
|
//
|
||||||
|
#define _AFX_NO_SPLITTER_RESOURCES
|
||||||
|
#define _AFX_NO_OLE_RESOURCES
|
||||||
|
#define _AFX_NO_TRACKER_RESOURCES
|
||||||
|
#define _AFX_NO_PROPERTY_RESOURCES
|
||||||
|
|
||||||
|
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||||
|
LANGUAGE 9, 1
|
||||||
|
#pragma code_page(1252)
|
||||||
|
#include "res\FileTransfer.rc2" // non-Microsoft Visual C++ edited resources
|
||||||
|
#include "afxres.rc" // Standard components
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
#endif // not APSTUDIO_INVOKED
|
||||||
|
|
||||||
|
|
@ -0,0 +1,483 @@
|
||||||
|
<?xml version="1.0" encoding="Windows-1252"?>
|
||||||
|
<VisualStudioProject
|
||||||
|
ProjectType="Visual C++"
|
||||||
|
Version="9,00"
|
||||||
|
Name="FileTransfer"
|
||||||
|
ProjectGUID="{149E3D49-90F8-44E6-A4F9-BDEE84F65A70}"
|
||||||
|
RootNamespace="FileTransfer"
|
||||||
|
Keyword="MFCDLLProj"
|
||||||
|
TargetFrameworkVersion="196613"
|
||||||
|
>
|
||||||
|
<Platforms>
|
||||||
|
<Platform
|
||||||
|
Name="Win32"
|
||||||
|
/>
|
||||||
|
<Platform
|
||||||
|
Name="x64"
|
||||||
|
/>
|
||||||
|
</Platforms>
|
||||||
|
<ToolFiles>
|
||||||
|
</ToolFiles>
|
||||||
|
<Configurations>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||||
|
IntermediateDirectory="$(ConfigurationName)"
|
||||||
|
ConfigurationType="2"
|
||||||
|
UseOfMFC="2"
|
||||||
|
CharacterSet="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="_DEBUG"
|
||||||
|
MkTypLibCompatible="false"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories=""..\..\utiles""
|
||||||
|
PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG;_USRDLL"
|
||||||
|
MinimalRebuild="true"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
UsePrecompiledHeader="2"
|
||||||
|
WarningLevel="3"
|
||||||
|
DebugInformationFormat="4"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="_DEBUG"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories="$(IntDir)"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies="utiles.lib"
|
||||||
|
LinkIncremental="2"
|
||||||
|
AdditionalLibraryDirectories=""..\..\..\lib\$(ConfigurationName)""
|
||||||
|
ModuleDefinitionFile=".\FileTransfer.def"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
CommandLine="copy $(OutDir)\$(TargetFileName) ..\..\..\BIN\$(ConfigurationName)
copy $(OutDir)\FileTransfer.lib ..\..\..\lib\$(ConfigurationName)
"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|x64"
|
||||||
|
OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
|
||||||
|
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
|
||||||
|
ConfigurationType="2"
|
||||||
|
UseOfMFC="2"
|
||||||
|
CharacterSet="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="_DEBUG"
|
||||||
|
MkTypLibCompatible="false"
|
||||||
|
TargetEnvironment="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories=""..\..\utiles""
|
||||||
|
PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG;_USRDLL"
|
||||||
|
MinimalRebuild="true"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
UsePrecompiledHeader="2"
|
||||||
|
WarningLevel="3"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="_DEBUG"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories="$(IntDir)"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies="utiles.lib"
|
||||||
|
LinkIncremental="2"
|
||||||
|
AdditionalLibraryDirectories=""..\..\..\lib\x64\$(ConfigurationName)""
|
||||||
|
ModuleDefinitionFile=".\FileTransfer.def"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="17"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
CommandLine="copy $(OutDir)\$(TargetFileName) ..\..\..\BIN\x64\$(ConfigurationName)
copy $(OutDir)\FileTransfer.lib ..\..\..\lib\x64\$(ConfigurationName)
"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|Win32"
|
||||||
|
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||||
|
IntermediateDirectory="$(ConfigurationName)"
|
||||||
|
ConfigurationType="2"
|
||||||
|
UseOfMFC="2"
|
||||||
|
CharacterSet="1"
|
||||||
|
WholeProgramOptimization="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="NDEBUG"
|
||||||
|
MkTypLibCompatible="false"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="2"
|
||||||
|
EnableIntrinsicFunctions="true"
|
||||||
|
AdditionalIncludeDirectories=""..\..\utiles""
|
||||||
|
PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;_USRDLL"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
EnableFunctionLevelLinking="true"
|
||||||
|
UsePrecompiledHeader="2"
|
||||||
|
WarningLevel="3"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="NDEBUG"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories="$(IntDir)"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies="utiles.lib"
|
||||||
|
LinkIncremental="1"
|
||||||
|
AdditionalLibraryDirectories=""..\..\..\lib\$(ConfigurationName)""
|
||||||
|
ModuleDefinitionFile=".\FileTransfer.def"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
SubSystem="2"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
CommandLine="copy $(OutDir)\$(TargetFileName) ..\..\..\BIN\$(ConfigurationName)
copy $(OutDir)\FileTransfer.lib ..\..\..\lib\$(ConfigurationName)
"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|x64"
|
||||||
|
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
|
||||||
|
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
|
||||||
|
ConfigurationType="2"
|
||||||
|
UseOfMFC="2"
|
||||||
|
CharacterSet="2"
|
||||||
|
WholeProgramOptimization="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="NDEBUG"
|
||||||
|
MkTypLibCompatible="false"
|
||||||
|
TargetEnvironment="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="2"
|
||||||
|
EnableIntrinsicFunctions="true"
|
||||||
|
AdditionalIncludeDirectories=""..\..\utiles""
|
||||||
|
PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;_USRDLL"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
EnableFunctionLevelLinking="true"
|
||||||
|
UsePrecompiledHeader="2"
|
||||||
|
WarningLevel="3"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="NDEBUG"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories="$(IntDir)"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies="utiles.lib"
|
||||||
|
LinkIncremental="1"
|
||||||
|
AdditionalLibraryDirectories=""..\..\..\lib\x64\$(ConfigurationName)""
|
||||||
|
ModuleDefinitionFile=".\FileTransfer.def"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
SubSystem="2"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"
|
||||||
|
TargetMachine="17"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
CommandLine="copy $(OutDir)\$(TargetFileName) ..\..\..\BIN\x64\$(ConfigurationName)
copy $(OutDir)\FileTransfer.lib ..\..\..\lib\x64\$(ConfigurationName)
"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
</Configurations>
|
||||||
|
<References>
|
||||||
|
</References>
|
||||||
|
<Files>
|
||||||
|
<Filter
|
||||||
|
Name="Source Files"
|
||||||
|
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||||
|
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\DescargadorFiles.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\FileTransfer.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\FileTransfer.def"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\FileTransferClient.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\FileTransferManager.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\stdafx.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="1"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="1"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="1"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="1"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Header Files"
|
||||||
|
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||||
|
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\DescargadorFiles.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\FileTransfer.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\FileTransferClient.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\FileTransferDef.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\FileTransferManager.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\Resource.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\stdafx.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\targetver.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Resource Files"
|
||||||
|
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
||||||
|
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\FileTransfer.rc"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\res\FileTransfer.rc2"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<File
|
||||||
|
RelativePath=".\ReadMe.txt"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Globals>
|
||||||
|
</Globals>
|
||||||
|
</VisualStudioProject>
|
||||||
|
|
@ -0,0 +1,121 @@
|
||||||
|
<?xml version="1.0" encoding="Windows-1252"?>
|
||||||
|
<VisualStudioUserFile
|
||||||
|
ProjectType="Visual C++"
|
||||||
|
Version="9,00"
|
||||||
|
ShowAllFiles="false"
|
||||||
|
>
|
||||||
|
<Configurations>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<DebugSettings
|
||||||
|
Command=""
|
||||||
|
WorkingDirectory=""
|
||||||
|
CommandArguments=""
|
||||||
|
Attach="false"
|
||||||
|
DebuggerType="3"
|
||||||
|
Remote="1"
|
||||||
|
RemoteMachine="NELIAM"
|
||||||
|
RemoteCommand=""
|
||||||
|
HttpUrl=""
|
||||||
|
PDBPath=""
|
||||||
|
SQLDebugging=""
|
||||||
|
Environment=""
|
||||||
|
EnvironmentMerge="true"
|
||||||
|
DebuggerFlavor=""
|
||||||
|
MPIRunCommand=""
|
||||||
|
MPIRunArguments=""
|
||||||
|
MPIRunWorkingDirectory=""
|
||||||
|
ApplicationCommand=""
|
||||||
|
ApplicationArguments=""
|
||||||
|
ShimCommand=""
|
||||||
|
MPIAcceptMode=""
|
||||||
|
MPIAcceptFilter=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|x64"
|
||||||
|
>
|
||||||
|
<DebugSettings
|
||||||
|
Command=""
|
||||||
|
WorkingDirectory=""
|
||||||
|
CommandArguments=""
|
||||||
|
Attach="false"
|
||||||
|
DebuggerType="3"
|
||||||
|
Remote="1"
|
||||||
|
RemoteMachine="NELIAM"
|
||||||
|
RemoteCommand=""
|
||||||
|
HttpUrl=""
|
||||||
|
PDBPath=""
|
||||||
|
SQLDebugging=""
|
||||||
|
Environment=""
|
||||||
|
EnvironmentMerge="true"
|
||||||
|
DebuggerFlavor=""
|
||||||
|
MPIRunCommand=""
|
||||||
|
MPIRunArguments=""
|
||||||
|
MPIRunWorkingDirectory=""
|
||||||
|
ApplicationCommand=""
|
||||||
|
ApplicationArguments=""
|
||||||
|
ShimCommand=""
|
||||||
|
MPIAcceptMode=""
|
||||||
|
MPIAcceptFilter=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<DebugSettings
|
||||||
|
Command=""
|
||||||
|
WorkingDirectory=""
|
||||||
|
CommandArguments=""
|
||||||
|
Attach="false"
|
||||||
|
DebuggerType="3"
|
||||||
|
Remote="1"
|
||||||
|
RemoteMachine="NELIAM"
|
||||||
|
RemoteCommand=""
|
||||||
|
HttpUrl=""
|
||||||
|
PDBPath=""
|
||||||
|
SQLDebugging=""
|
||||||
|
Environment=""
|
||||||
|
EnvironmentMerge="true"
|
||||||
|
DebuggerFlavor=""
|
||||||
|
MPIRunCommand=""
|
||||||
|
MPIRunArguments=""
|
||||||
|
MPIRunWorkingDirectory=""
|
||||||
|
ApplicationCommand=""
|
||||||
|
ApplicationArguments=""
|
||||||
|
ShimCommand=""
|
||||||
|
MPIAcceptMode=""
|
||||||
|
MPIAcceptFilter=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|x64"
|
||||||
|
>
|
||||||
|
<DebugSettings
|
||||||
|
Command=""
|
||||||
|
WorkingDirectory=""
|
||||||
|
CommandArguments=""
|
||||||
|
Attach="false"
|
||||||
|
DebuggerType="3"
|
||||||
|
Remote="1"
|
||||||
|
RemoteMachine="NELIAM"
|
||||||
|
RemoteCommand=""
|
||||||
|
HttpUrl=""
|
||||||
|
PDBPath=""
|
||||||
|
SQLDebugging=""
|
||||||
|
Environment=""
|
||||||
|
EnvironmentMerge="true"
|
||||||
|
DebuggerFlavor=""
|
||||||
|
MPIRunCommand=""
|
||||||
|
MPIRunArguments=""
|
||||||
|
MPIRunWorkingDirectory=""
|
||||||
|
ApplicationCommand=""
|
||||||
|
ApplicationArguments=""
|
||||||
|
ShimCommand=""
|
||||||
|
MPIAcceptMode=""
|
||||||
|
MPIAcceptFilter=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
</Configurations>
|
||||||
|
</VisualStudioUserFile>
|
||||||
|
|
@ -0,0 +1,121 @@
|
||||||
|
<?xml version="1.0" encoding="Windows-1252"?>
|
||||||
|
<VisualStudioUserFile
|
||||||
|
ProjectType="Visual C++"
|
||||||
|
Version="9,00"
|
||||||
|
ShowAllFiles="false"
|
||||||
|
>
|
||||||
|
<Configurations>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<DebugSettings
|
||||||
|
Command=""
|
||||||
|
WorkingDirectory=""
|
||||||
|
CommandArguments=""
|
||||||
|
Attach="false"
|
||||||
|
DebuggerType="3"
|
||||||
|
Remote="1"
|
||||||
|
RemoteMachine="YANDRAK"
|
||||||
|
RemoteCommand=""
|
||||||
|
HttpUrl=""
|
||||||
|
PDBPath=""
|
||||||
|
SQLDebugging=""
|
||||||
|
Environment=""
|
||||||
|
EnvironmentMerge="true"
|
||||||
|
DebuggerFlavor=""
|
||||||
|
MPIRunCommand=""
|
||||||
|
MPIRunArguments=""
|
||||||
|
MPIRunWorkingDirectory=""
|
||||||
|
ApplicationCommand=""
|
||||||
|
ApplicationArguments=""
|
||||||
|
ShimCommand=""
|
||||||
|
MPIAcceptMode=""
|
||||||
|
MPIAcceptFilter=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|x64"
|
||||||
|
>
|
||||||
|
<DebugSettings
|
||||||
|
Command=""
|
||||||
|
WorkingDirectory=""
|
||||||
|
CommandArguments=""
|
||||||
|
Attach="false"
|
||||||
|
DebuggerType="3"
|
||||||
|
Remote="1"
|
||||||
|
RemoteMachine="YANDRAK"
|
||||||
|
RemoteCommand=""
|
||||||
|
HttpUrl=""
|
||||||
|
PDBPath=""
|
||||||
|
SQLDebugging=""
|
||||||
|
Environment=""
|
||||||
|
EnvironmentMerge="true"
|
||||||
|
DebuggerFlavor=""
|
||||||
|
MPIRunCommand=""
|
||||||
|
MPIRunArguments=""
|
||||||
|
MPIRunWorkingDirectory=""
|
||||||
|
ApplicationCommand=""
|
||||||
|
ApplicationArguments=""
|
||||||
|
ShimCommand=""
|
||||||
|
MPIAcceptMode=""
|
||||||
|
MPIAcceptFilter=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<DebugSettings
|
||||||
|
Command=""
|
||||||
|
WorkingDirectory=""
|
||||||
|
CommandArguments=""
|
||||||
|
Attach="false"
|
||||||
|
DebuggerType="3"
|
||||||
|
Remote="1"
|
||||||
|
RemoteMachine="YANDRAK"
|
||||||
|
RemoteCommand=""
|
||||||
|
HttpUrl=""
|
||||||
|
PDBPath=""
|
||||||
|
SQLDebugging=""
|
||||||
|
Environment=""
|
||||||
|
EnvironmentMerge="true"
|
||||||
|
DebuggerFlavor=""
|
||||||
|
MPIRunCommand=""
|
||||||
|
MPIRunArguments=""
|
||||||
|
MPIRunWorkingDirectory=""
|
||||||
|
ApplicationCommand=""
|
||||||
|
ApplicationArguments=""
|
||||||
|
ShimCommand=""
|
||||||
|
MPIAcceptMode=""
|
||||||
|
MPIAcceptFilter=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|x64"
|
||||||
|
>
|
||||||
|
<DebugSettings
|
||||||
|
Command=""
|
||||||
|
WorkingDirectory=""
|
||||||
|
CommandArguments=""
|
||||||
|
Attach="false"
|
||||||
|
DebuggerType="3"
|
||||||
|
Remote="1"
|
||||||
|
RemoteMachine="YANDRAK"
|
||||||
|
RemoteCommand=""
|
||||||
|
HttpUrl=""
|
||||||
|
PDBPath=""
|
||||||
|
SQLDebugging=""
|
||||||
|
Environment=""
|
||||||
|
EnvironmentMerge="true"
|
||||||
|
DebuggerFlavor=""
|
||||||
|
MPIRunCommand=""
|
||||||
|
MPIRunArguments=""
|
||||||
|
MPIRunWorkingDirectory=""
|
||||||
|
ApplicationCommand=""
|
||||||
|
ApplicationArguments=""
|
||||||
|
ShimCommand=""
|
||||||
|
MPIAcceptMode=""
|
||||||
|
MPIAcceptFilter=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
</Configurations>
|
||||||
|
</VisualStudioUserFile>
|
||||||
|
|
@ -0,0 +1,277 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{149E3D49-90F8-44E6-A4F9-BDEE84F65A70}</ProjectGuid>
|
||||||
|
<RootNamespace>FileTransfer</RootNamespace>
|
||||||
|
<Keyword>MFCDLLProj</Keyword>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<PlatformToolset>v141</PlatformToolset>
|
||||||
|
<UseOfMfc>Dynamic</UseOfMfc>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<PlatformToolset>v141</PlatformToolset>
|
||||||
|
<UseOfMfc>Dynamic</UseOfMfc>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<PlatformToolset>v141</PlatformToolset>
|
||||||
|
<UseOfMfc>Dynamic</UseOfMfc>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<PlatformToolset>v141</PlatformToolset>
|
||||||
|
<UseOfMfc>Dynamic</UseOfMfc>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<_ProjectFileVersion>15.0.28127.55</_ProjectFileVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
|
||||||
|
<IntDir>$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||||
|
<IntDir>$(Platform)\$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
|
||||||
|
<IntDir>$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<OutDir>$(Platform)\$(Configuration)\</OutDir>
|
||||||
|
<IntDir>$(Platform)\$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<Midl>
|
||||||
|
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<MkTypLibCompatible>false</MkTypLibCompatible>
|
||||||
|
</Midl>
|
||||||
|
<ClCompile>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<AdditionalIncludeDirectories>..\..\utiles;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<PreprocessorDefinitions>WIN32;_WINDOWS;_DEBUG;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<MinimalRebuild>true</MinimalRebuild>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<ResourceCompile>
|
||||||
|
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<Culture>0x0409</Culture>
|
||||||
|
<AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ResourceCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>utiles.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>..\..\..\lib\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<ModuleDefinitionFile>.\FileTransfer.def</ModuleDefinitionFile>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
</Link>
|
||||||
|
<PostBuildEvent>
|
||||||
|
<Command>copy $(OutDir)$(TargetFileName) ..\..\bin\$(IntDir)
|
||||||
|
copy $(OutDir)FileTransfer.lib ..\..\lib\$(IntDir)
|
||||||
|
</Command>
|
||||||
|
</PostBuildEvent>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<Midl>
|
||||||
|
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<MkTypLibCompatible>false</MkTypLibCompatible>
|
||||||
|
<TargetEnvironment>X64</TargetEnvironment>
|
||||||
|
</Midl>
|
||||||
|
<ClCompile>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<AdditionalIncludeDirectories>..\..\utiles;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<PreprocessorDefinitions>WIN32;_WINDOWS;_DEBUG;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<MinimalRebuild>true</MinimalRebuild>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<ResourceCompile>
|
||||||
|
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<Culture>0x0409</Culture>
|
||||||
|
<AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ResourceCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>utiles.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>..\..\..\lib\x64\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<ModuleDefinitionFile>.\FileTransfer.def</ModuleDefinitionFile>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<TargetMachine>MachineX64</TargetMachine>
|
||||||
|
</Link>
|
||||||
|
<PostBuildEvent>
|
||||||
|
<Command>copy $(OutDir)$(TargetFileName) ..\..\bin\$(IntDir)
|
||||||
|
copy $(OutDir)FileTransfer.lib ..\..\lib\$(IntDir)
|
||||||
|
</Command>
|
||||||
|
</PostBuildEvent>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<Midl>
|
||||||
|
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<MkTypLibCompatible>false</MkTypLibCompatible>
|
||||||
|
</Midl>
|
||||||
|
<ClCompile>
|
||||||
|
<Optimization>MaxSpeed</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<AdditionalIncludeDirectories>..\..\utiles;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<ResourceCompile>
|
||||||
|
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<Culture>0x0409</Culture>
|
||||||
|
<AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ResourceCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>utiles.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>..\..\..\lib\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<ModuleDefinitionFile>.\FileTransfer.def</ModuleDefinitionFile>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
</Link>
|
||||||
|
<PostBuildEvent>
|
||||||
|
<Command>copy $(OutDir)$(TargetFileName) ..\..\bin\$(IntDir)
|
||||||
|
copy $(OutDir)FileTransfer.lib ..\..\lib\$(IntDir)
|
||||||
|
</Command>
|
||||||
|
</PostBuildEvent>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<Midl>
|
||||||
|
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<MkTypLibCompatible>false</MkTypLibCompatible>
|
||||||
|
<TargetEnvironment>X64</TargetEnvironment>
|
||||||
|
</Midl>
|
||||||
|
<ClCompile>
|
||||||
|
<Optimization>MaxSpeed</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<AdditionalIncludeDirectories>..\..\utiles;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<ResourceCompile>
|
||||||
|
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<Culture>0x0409</Culture>
|
||||||
|
<AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ResourceCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>utiles.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>..\..\..\lib\x64\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<ModuleDefinitionFile>.\FileTransfer.def</ModuleDefinitionFile>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<TargetMachine>MachineX64</TargetMachine>
|
||||||
|
</Link>
|
||||||
|
<PostBuildEvent>
|
||||||
|
<Command>copy $(OutDir)$(TargetFileName) ..\..\bin\$(IntDir)
|
||||||
|
copy $(OutDir)FileTransfer.lib ..\..\lib\$(IntDir)
|
||||||
|
</Command>
|
||||||
|
</PostBuildEvent>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="DescargadorFiles.cpp" />
|
||||||
|
<ClCompile Include="FileTransfer.cpp" />
|
||||||
|
<ClCompile Include="FileTransferClient.cpp" />
|
||||||
|
<ClCompile Include="FileTransferManager.cpp" />
|
||||||
|
<ClCompile Include="stdafx.cpp">
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="FileTransfer.def" />
|
||||||
|
<None Include="ReadMe.txt" />
|
||||||
|
<None Include="res\FileTransfer.rc2" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="DescargadorFiles.h" />
|
||||||
|
<ClInclude Include="FileTransfer.h" />
|
||||||
|
<ClInclude Include="FileTransferClient.h" />
|
||||||
|
<ClInclude Include="FileTransferDef.h" />
|
||||||
|
<ClInclude Include="FileTransferManager.h" />
|
||||||
|
<ClInclude Include="Resource.h" />
|
||||||
|
<ClInclude Include="stdafx.h" />
|
||||||
|
<ClInclude Include="targetver.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ResourceCompile Include="FileTransfer.rc" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\Utiles\utiles.vcxproj">
|
||||||
|
<Project>{aa58c828-7025-4a4c-868e-76b8902af6bb}</Project>
|
||||||
|
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
||||||
|
|
@ -0,0 +1,74 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Resource Files">
|
||||||
|
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||||
|
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="DescargadorFiles.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="FileTransfer.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="FileTransferClient.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="FileTransferManager.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="stdafx.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="FileTransfer.def">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</None>
|
||||||
|
<None Include="res\FileTransfer.rc2">
|
||||||
|
<Filter>Resource Files</Filter>
|
||||||
|
</None>
|
||||||
|
<None Include="ReadMe.txt" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="DescargadorFiles.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="FileTransfer.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="FileTransferClient.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="FileTransferDef.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="FileTransferManager.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="Resource.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="stdafx.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="targetver.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ResourceCompile Include="FileTransfer.rc">
|
||||||
|
<Filter>Resource Files</Filter>
|
||||||
|
</ResourceCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup />
|
||||||
|
</Project>
|
||||||
|
|
@ -0,0 +1,192 @@
|
||||||
|
#include "StdAfx.h"
|
||||||
|
#include "FileTransferClient.h"
|
||||||
|
#include "Csock_cl.h"
|
||||||
|
//***********************************************************************************
|
||||||
|
FileTransferClient::FileTransferClient(void)
|
||||||
|
{
|
||||||
|
sc = NULL;
|
||||||
|
lisener =0;
|
||||||
|
}
|
||||||
|
//***********************************************************************************
|
||||||
|
|
||||||
|
FileTransferClient::~FileTransferClient(void)
|
||||||
|
{
|
||||||
|
if(sc)
|
||||||
|
delete sc;
|
||||||
|
}
|
||||||
|
//***********************************************************************************
|
||||||
|
|
||||||
|
bool FileTransferClient::conecta( char* ip, int puerto )
|
||||||
|
{
|
||||||
|
if(sc)
|
||||||
|
delete sc;
|
||||||
|
sc = new Csock_cl();
|
||||||
|
if( sc->conectar(ip,puerto))
|
||||||
|
return false;
|
||||||
|
return enviaOk();
|
||||||
|
}
|
||||||
|
//***********************************************************************************
|
||||||
|
|
||||||
|
bool FileTransferClient::Presenta( char *user, char *key )
|
||||||
|
{
|
||||||
|
if(!sc)
|
||||||
|
return false;
|
||||||
|
int *id;
|
||||||
|
id =(int*)buff;
|
||||||
|
Usuario_conx_0 *usu = (Usuario_conx_0*)&((int*)buff)[1];
|
||||||
|
strcpy(usu->nombre,user);
|
||||||
|
strcpy(usu->clave,key);
|
||||||
|
|
||||||
|
*id=PETICION_GENERAL_PRESENTA;
|
||||||
|
if(!sc->envia_package((BYTE*)buff, sizeof(int)+ sizeof(Usuario_conx_0)))
|
||||||
|
return false;
|
||||||
|
int nv =10;
|
||||||
|
|
||||||
|
while(!sc->recibe_package(0))
|
||||||
|
{
|
||||||
|
nv--;
|
||||||
|
if(nv<0)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return (*(int*)sc->buf)== PETICION_GENERAL_OK;
|
||||||
|
}
|
||||||
|
//***********************************************************************************
|
||||||
|
|
||||||
|
bool FileTransferClient::DescargaFile( char *pathOrig, char *pathDest )
|
||||||
|
{
|
||||||
|
porcentOld =0;
|
||||||
|
if(lisener)
|
||||||
|
lisener->setStatus(0);
|
||||||
|
if(!sc)
|
||||||
|
{
|
||||||
|
if(lisener)
|
||||||
|
lisener->finTransfer(false);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
int *id;
|
||||||
|
id =(int*)buff;
|
||||||
|
char *str = (char*)&((int*)buff)[1];
|
||||||
|
if(!sc)
|
||||||
|
{
|
||||||
|
if(lisener)
|
||||||
|
lisener->finTransfer(false);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(!dt.setData(sc,&f) || !dt.setMode(DataTransfer::MODE_RECEIVE))
|
||||||
|
{
|
||||||
|
if(lisener)
|
||||||
|
lisener->finTransfer(false);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(!f.abre(pathDest,2,TRUE))
|
||||||
|
{
|
||||||
|
if(lisener)
|
||||||
|
lisener->finTransfer(false);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
strcpy(str,pathOrig);
|
||||||
|
*id = PETICION_GENERAL_OK;
|
||||||
|
if(!sc->envia_package((BYTE*)buff, sizeof(int)+ 256))
|
||||||
|
{
|
||||||
|
if(lisener)
|
||||||
|
lisener->finTransfer(false);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!sc->recibe_package(0))
|
||||||
|
{
|
||||||
|
if(lisener)
|
||||||
|
lisener->finTransfer(false);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(sc->nb<sizeof(int) || (*(int*)sc->buf)!= PETICION_GENERAL_OK)
|
||||||
|
{
|
||||||
|
if(lisener)
|
||||||
|
lisener->finTransfer(false);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(!dt.start())
|
||||||
|
{
|
||||||
|
if(lisener)
|
||||||
|
lisener->finTransfer(false);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
while(dt.currando())
|
||||||
|
{
|
||||||
|
if(lisener)
|
||||||
|
{
|
||||||
|
if(lisener->cancelTransfer())
|
||||||
|
{
|
||||||
|
dt.cancel();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
double status= dt.getStatus();
|
||||||
|
//C_log::log("FileTransferClient","Porcent: %lf" status);
|
||||||
|
if(porcentOld<status)
|
||||||
|
{
|
||||||
|
porcentOld = status;
|
||||||
|
lisener->setStatus(porcentOld);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Sleep(10);
|
||||||
|
}
|
||||||
|
if(lisener)
|
||||||
|
lisener->finTransfer(!dt.isCanceled());
|
||||||
|
|
||||||
|
return !dt.isCanceled();
|
||||||
|
}
|
||||||
|
//***********************************************************************************
|
||||||
|
|
||||||
|
bool FileTransferClient::DescargaDir( char *dirOrig, char *dirDest )
|
||||||
|
{
|
||||||
|
if(!sc)
|
||||||
|
return false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
//***********************************************************************************
|
||||||
|
|
||||||
|
bool FileTransferClient::desconecta()
|
||||||
|
{
|
||||||
|
if(!sc)
|
||||||
|
return false;
|
||||||
|
int *id =(int*)buff;
|
||||||
|
*id = PETICION_GENERAL_FIN;
|
||||||
|
if(!sc->envia_package((BYTE*)buff, sizeof(int)))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
delete sc;
|
||||||
|
sc = NULL;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
//***********************************************************************************
|
||||||
|
|
||||||
|
bool FileTransferClient::enviaOk()
|
||||||
|
{
|
||||||
|
if(!sc)
|
||||||
|
return false;
|
||||||
|
int *id =(int*)buff;
|
||||||
|
*id = PETICION_GENERAL_NO;
|
||||||
|
if(!sc->envia_package((BYTE*)buff, sizeof(int)))
|
||||||
|
return false;
|
||||||
|
if(!sc->recibe_package(0))
|
||||||
|
return false;
|
||||||
|
return sc->nb==sizeof(int) &&(*(int*)sc->buf)== PETICION_GENERAL_OK;
|
||||||
|
}
|
||||||
|
//***********************************************************************************
|
||||||
|
double FileTransferClient::getPorcen()
|
||||||
|
{
|
||||||
|
if(dt.isCanceled() || !dt.currando())
|
||||||
|
return 100.;
|
||||||
|
return dt.getStatus();
|
||||||
|
|
||||||
|
}
|
||||||
|
//***********************************************************************************
|
||||||
|
void FileTransferClient::setLisener( FileTransferClientLisener*lis )
|
||||||
|
{
|
||||||
|
lisener = lis;
|
||||||
|
}
|
||||||
|
//***********************************************************************************
|
||||||
|
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
#pragma once
|
||||||
|
#ifndef FileTransferClient_H
|
||||||
|
#define FileTransferClient_H
|
||||||
|
#include "FileTransferDef.h"
|
||||||
|
#include "DataTransfer.h"
|
||||||
|
class Csock_cl;
|
||||||
|
|
||||||
|
//clase cliente de descarga de archivos
|
||||||
|
class FT_EXPORT FileTransferClient
|
||||||
|
{
|
||||||
|
Csock_cl *sc;
|
||||||
|
Cb_file f;
|
||||||
|
DataTransfer dt;
|
||||||
|
char buff[sizeof(int)+ sizeof(Usuario_conx_0)+256];
|
||||||
|
double porcentOld;
|
||||||
|
FileTransferClientLisener *lisener;
|
||||||
|
public:
|
||||||
|
FileTransferClient(void);
|
||||||
|
~FileTransferClient(void);
|
||||||
|
bool conecta(char* ip, int puerto);
|
||||||
|
bool Presenta(char *user, char *key);
|
||||||
|
void setLisener(FileTransferClientLisener*lis);
|
||||||
|
bool DescargaFile(char *pathOrig, char *pathDest);
|
||||||
|
bool DescargaDir(char *dirOrig, char *dirDest);
|
||||||
|
bool desconecta();
|
||||||
|
bool enviaOk();
|
||||||
|
double getPorcen();
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
#ifndef FT_EXPORT
|
||||||
|
#ifdef _WINDLL
|
||||||
|
#define FT_EXPORT __declspec(dllexport)
|
||||||
|
#else
|
||||||
|
#define FT_EXPORT __declspec(dllimport)
|
||||||
|
#endif
|
||||||
|
struct Usuario_conx_0;
|
||||||
|
class FT_EXPORT IDataUserProvider
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
virtual bool fill(Usuario_conx_0 *user, char *pathRaid) = 0;
|
||||||
|
virtual bool getConf(char *ip, int *port) = 0;
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#define FILE_TRANSMISION_GET_FILES 7
|
||||||
|
#define FILE_TRANSMISION_GET_DIRS 8
|
||||||
|
|
||||||
|
class FT_EXPORT FileTransferClientLisener
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
virtual void setStatus(double porcent){};
|
||||||
|
virtual void finTransfer(bool finalFeliz){};
|
||||||
|
virtual bool cancelTransfer(){ return false;};
|
||||||
|
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,233 @@
|
||||||
|
#include "StdAfx.h"
|
||||||
|
#include "FileTransferManager.h"
|
||||||
|
#include "DataTransfer.h"
|
||||||
|
|
||||||
|
#include "_log.h"
|
||||||
|
#include "proceso_cliente.h"
|
||||||
|
#include "sock_sv.h"
|
||||||
|
#include "dir_manager.h"
|
||||||
|
#include "StrArray.h"
|
||||||
|
|
||||||
|
#define MODULO "ProcClient"
|
||||||
|
//*****************************************************************************
|
||||||
|
FileTransferManager::FileTransferManager(void)
|
||||||
|
{
|
||||||
|
pirate = false;
|
||||||
|
dirRaid[0]=0;
|
||||||
|
}
|
||||||
|
//*****************************************************************************
|
||||||
|
FileTransferManager::~FileTransferManager(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
//*****************************************************************************
|
||||||
|
bool FileTransferManager::envia(int id)
|
||||||
|
{
|
||||||
|
return soc->envia_package((BYTE*)&id, sizeof(id)) == TRUE;
|
||||||
|
}
|
||||||
|
//*****************************************************************************
|
||||||
|
bool FileTransferManager::envia(void *buf, int siz)
|
||||||
|
{
|
||||||
|
return soc->envia_package((BYTE*)buf, siz) == TRUE;
|
||||||
|
}
|
||||||
|
//*****************************************************************************
|
||||||
|
void FileTransferManager::run()
|
||||||
|
{
|
||||||
|
DataTransfer dt;
|
||||||
|
Cb_file f;
|
||||||
|
char str[512];
|
||||||
|
int nr=0;
|
||||||
|
int nraid=0;
|
||||||
|
void *buf;
|
||||||
|
StrArray files,dirs;
|
||||||
|
C_log::log(MODULO, "Iniciada Conexion");
|
||||||
|
if(!dt.setData(soc,&f) || !dt.setMode(DataTransfer::MODE_SEND))
|
||||||
|
{
|
||||||
|
C_log::log(MODULO, "error al iniciar buffers de transmision");
|
||||||
|
pirate =true;
|
||||||
|
}
|
||||||
|
while(!pirate && !*soc->pirate)
|
||||||
|
{
|
||||||
|
if(exSal && *exSal)
|
||||||
|
{
|
||||||
|
C_log::log(MODULO, "Sale por desconexion del socket");
|
||||||
|
pirate =true;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if(!soc->recibe_package(0))
|
||||||
|
{
|
||||||
|
nr++;
|
||||||
|
if(nr>1000)
|
||||||
|
{
|
||||||
|
pirate = true;
|
||||||
|
C_log::log(MODULO, "Sobrepasado tiempo de espera.");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
Sleep(1);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
nr =0;
|
||||||
|
//recive package-------------
|
||||||
|
if(soc->nb<sizeof(int))
|
||||||
|
{
|
||||||
|
C_log::log(MODULO, "Datos erroneos");
|
||||||
|
pirate = true;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
int idp = *(int*)soc->buf;
|
||||||
|
int nb =soc->nb-(sizeof(int));
|
||||||
|
buf = &((int*)soc->buf)[1];
|
||||||
|
switch(idp)
|
||||||
|
{
|
||||||
|
|
||||||
|
case(PETICION_GENERAL_PRESENTA):
|
||||||
|
//pilla usuario, pilla key
|
||||||
|
if(nb!= sizeof(usu))
|
||||||
|
{
|
||||||
|
C_log::log(MODULO, "Paquete de presentacion defectuoso");
|
||||||
|
pirate = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
memcpy(&usu, buf,sizeof(usu));
|
||||||
|
usu.nombre[31] = 0;
|
||||||
|
usu.clave[31] = 0;
|
||||||
|
char claveUser[32];
|
||||||
|
memcpy(claveUser, usu.clave,32);
|
||||||
|
nraid = 0;
|
||||||
|
dirRaid[0]=0;
|
||||||
|
if(duProv)
|
||||||
|
{
|
||||||
|
if(!duProv->fill(&usu, dirRaid))
|
||||||
|
{
|
||||||
|
envia(PETICION_GENERAL_NO);
|
||||||
|
C_log::log(MODULO, "Error al pillar datos de usuario: %s",usu.nombre);
|
||||||
|
pirate = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
nraid = strlen(dirRaid);
|
||||||
|
if(strcmp(usu.clave, claveUser))
|
||||||
|
{
|
||||||
|
envia(PETICION_GENERAL_NO);
|
||||||
|
C_log::log(MODULO, "Error clave de usuario incorrecta usuario: %s key: %s",usu.nombre, claveUser);
|
||||||
|
pirate = true;
|
||||||
|
}
|
||||||
|
C_log::log(MODULO, "Presentado usuario %s",usu.nombre);
|
||||||
|
if(!envia(PETICION_GENERAL_OK))
|
||||||
|
{
|
||||||
|
C_log::log(MODULO, "Error al enviar ok en presentacion");
|
||||||
|
pirate = true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case(PETICION_GENERAL_OK)://envia descargar archivo
|
||||||
|
//pilla path
|
||||||
|
if(nb!= 256)
|
||||||
|
{
|
||||||
|
C_log::log(MODULO, "Paquete ok defectuoso");
|
||||||
|
pirate = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
memcpy(str,dirRaid,nraid);
|
||||||
|
memcpy(&str[nraid], buf, 256);
|
||||||
|
str[255]=0;
|
||||||
|
C_log::log(MODULO, "Peticion de descarga de archivo %s", str);
|
||||||
|
if(!f.abre(str,1,FALSE,TRUE))
|
||||||
|
{
|
||||||
|
if(!envia(PETICION_GENERAL_NO))
|
||||||
|
{
|
||||||
|
C_log::log(MODULO, "Error al enviar no en descarga");
|
||||||
|
pirate = true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if(!envia(PETICION_GENERAL_OK))
|
||||||
|
{
|
||||||
|
C_log::log(MODULO, "Error al enviar no en descarga");
|
||||||
|
pirate = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if(!dt.start())
|
||||||
|
{
|
||||||
|
C_log::log(MODULO, "Error al iniciar descarga");
|
||||||
|
pirate = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
while(dt.currando())
|
||||||
|
Sleep(10);
|
||||||
|
if(dt.isCanceled())
|
||||||
|
{
|
||||||
|
C_log::log(MODULO, "Error al descargar archivo");
|
||||||
|
pirate = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
C_log::log(MODULO, "Descarga archivo Exitosa");
|
||||||
|
break;
|
||||||
|
case(PETICION_GENERAL_NO):
|
||||||
|
if(!envia(PETICION_GENERAL_OK))
|
||||||
|
{
|
||||||
|
C_log::log(MODULO, "Error al enviar no");
|
||||||
|
pirate = true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case(PETICION_GENERAL_FIN):
|
||||||
|
C_log::log(MODULO, "Recibida desconexion");
|
||||||
|
pirate = true;
|
||||||
|
break;
|
||||||
|
case(FILE_TRANSMISION_GET_FILES):
|
||||||
|
C_log::log(MODULO, "Recibida peticion de getFiles");
|
||||||
|
//pilla path
|
||||||
|
if(nb!= 256)
|
||||||
|
{
|
||||||
|
C_log::log(MODULO, "Paquete ok defectuoso");
|
||||||
|
pirate = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
memcpy(str,dirRaid,nraid);
|
||||||
|
memcpy(&str[nraid], buf, 256);
|
||||||
|
str[255]=0;
|
||||||
|
if(!Cdir_manager::listar_elementos(str, &files, &dirs))
|
||||||
|
{
|
||||||
|
if(!envia(PETICION_GENERAL_NO))
|
||||||
|
{
|
||||||
|
C_log::log(MODULO, "Error al enviar no");
|
||||||
|
pirate = true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
if(!envia(PETICION_GENERAL_OK))
|
||||||
|
{
|
||||||
|
C_log::log(MODULO, "Error al enviar ok");
|
||||||
|
pirate = true;
|
||||||
|
}
|
||||||
|
if(!envia(files.n_i))
|
||||||
|
{
|
||||||
|
C_log::log(MODULO, "Error al enviar strArray");
|
||||||
|
pirate = true;
|
||||||
|
}
|
||||||
|
if(!envia(files.str, files.n_str))
|
||||||
|
{
|
||||||
|
C_log::log(MODULO, "Error al enviar strArray");
|
||||||
|
pirate = true;
|
||||||
|
}
|
||||||
|
if(!envia(dirs.n_i))
|
||||||
|
{
|
||||||
|
C_log::log(MODULO, "Error al enviar strArray");
|
||||||
|
pirate = true;
|
||||||
|
}
|
||||||
|
if(!envia(dirs.str, dirs.n_str))
|
||||||
|
{
|
||||||
|
C_log::log(MODULO, "Error al enviar strArray");
|
||||||
|
pirate = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
C_log::log(MODULO, "Id cab no reconocido");
|
||||||
|
pirate = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
C_log::log(MODULO, "Se desconecta proceso");
|
||||||
|
}
|
||||||
|
|
||||||
|
//*****************************************************************************
|
||||||
|
|
@ -0,0 +1,27 @@
|
||||||
|
#pragma once
|
||||||
|
#ifndef FileTransferManager_H
|
||||||
|
#define FileTransferManager_H
|
||||||
|
|
||||||
|
#include "proceso_cliente.h"
|
||||||
|
#include "utiles_def.h"
|
||||||
|
#include "FileTransferDef.h"
|
||||||
|
#include "proceso_cliente.h"
|
||||||
|
//clase servidor de descarga de archivos
|
||||||
|
class FT_EXPORT FileTransferManager:
|
||||||
|
public Cproceso_cliente
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
FileTransferManager(void);
|
||||||
|
~FileTransferManager(void);
|
||||||
|
|
||||||
|
Usuario_conx_0 usu;//usuario conectado
|
||||||
|
IDataUserProvider *duProv;
|
||||||
|
char dirRaid[MAX_PATH];
|
||||||
|
bool pirate;
|
||||||
|
BOOL *exSal;
|
||||||
|
virtual void run();//funcion que hace el thread
|
||||||
|
private:
|
||||||
|
bool envia(int id);
|
||||||
|
bool envia(void *buf, int siz);
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,60 @@
|
||||||
|
========================================================================
|
||||||
|
MICROSOFT FOUNDATION CLASS LIBRARY : FileTransfer Project Overview
|
||||||
|
========================================================================
|
||||||
|
|
||||||
|
|
||||||
|
AppWizard has created this FileTransfer DLL for you. This DLL not only
|
||||||
|
demonstrates the basics of using the Microsoft Foundation classes but
|
||||||
|
is also a starting point for writing your DLL.
|
||||||
|
|
||||||
|
This file contains a summary of what you will find in each of the files that
|
||||||
|
make up your FileTransfer DLL.
|
||||||
|
|
||||||
|
FileTransfer.vcproj
|
||||||
|
This is the main project file for VC++ projects generated using an Application Wizard.
|
||||||
|
It contains information about the version of Visual C++ that generated the file, and
|
||||||
|
information about the platforms, configurations, and project features selected with the
|
||||||
|
Application Wizard.
|
||||||
|
|
||||||
|
FileTransfer.h
|
||||||
|
This is the main header file for the DLL. It declares the
|
||||||
|
CFileTransferApp class.
|
||||||
|
|
||||||
|
FileTransfer.cpp
|
||||||
|
This is the main DLL source file. It contains the class CFileTransferApp.
|
||||||
|
|
||||||
|
FileTransfer.rc
|
||||||
|
This is a listing of all of the Microsoft Windows resources that the
|
||||||
|
program uses. It includes the icons, bitmaps, and cursors that are stored
|
||||||
|
in the RES subdirectory. This file can be directly edited in Microsoft
|
||||||
|
Visual C++.
|
||||||
|
|
||||||
|
res\FileTransfer.rc2
|
||||||
|
This file contains resources that are not edited by Microsoft
|
||||||
|
Visual C++. You should place all resources not editable by
|
||||||
|
the resource editor in this file.
|
||||||
|
|
||||||
|
FileTransfer.def
|
||||||
|
This file contains information about the DLL that must be
|
||||||
|
provided to run with Microsoft Windows. It defines parameters
|
||||||
|
such as the name and description of the DLL. It also exports
|
||||||
|
functions from the DLL.
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
Other standard files:
|
||||||
|
|
||||||
|
StdAfx.h, StdAfx.cpp
|
||||||
|
These files are used to build a precompiled header (PCH) file
|
||||||
|
named FileTransfer.pch and a precompiled types file named StdAfx.obj.
|
||||||
|
|
||||||
|
Resource.h
|
||||||
|
This is the standard header file, which defines new resource IDs.
|
||||||
|
Microsoft Visual C++ reads and updates this file.
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
Other notes:
|
||||||
|
|
||||||
|
AppWizard uses "TODO:" to indicate parts of the source code you
|
||||||
|
should add to or customize.
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
//{{NO_DEPENDENCIES}}
|
||||||
|
// Microsoft Visual C++ generated include file.
|
||||||
|
// Used by FileTransfer.rc
|
||||||
|
//
|
||||||
|
#define IDP_SOCKETS_INIT_FAILED 101
|
||||||
|
|
||||||
|
// Next default values for new objects
|
||||||
|
//
|
||||||
|
#ifdef APSTUDIO_INVOKED
|
||||||
|
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||||
|
|
||||||
|
#define _APS_NEXT_RESOURCE_VALUE 2000
|
||||||
|
#define _APS_NEXT_CONTROL_VALUE 2000
|
||||||
|
#define _APS_NEXT_SYMED_VALUE 2000
|
||||||
|
#define _APS_NEXT_COMMAND_VALUE 32771
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
//
|
||||||
|
// FileTransfer.RC2 - resources Microsoft Visual C++ does not edit directly
|
||||||
|
//
|
||||||
|
|
||||||
|
#ifdef APSTUDIO_INVOKED
|
||||||
|
#error this file is not editable by Microsoft Visual C++
|
||||||
|
#endif //APSTUDIO_INVOKED
|
||||||
|
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Add manually edited resources here...
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
// stdafx.cpp : source file that includes just the standard includes
|
||||||
|
// FileTransfer.pch will be the pre-compiled header
|
||||||
|
// stdafx.obj will contain the pre-compiled type information
|
||||||
|
|
||||||
|
#include "stdafx.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,41 @@
|
||||||
|
// stdafx.h : include file for standard system include files,
|
||||||
|
// or project specific include files that are used frequently, but
|
||||||
|
// are changed infrequently
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#ifndef VC_EXTRALEAN
|
||||||
|
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "targetver.h"
|
||||||
|
|
||||||
|
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
|
||||||
|
|
||||||
|
#include <afxwin.h> // MFC core and standard components
|
||||||
|
#include <afxext.h> // MFC extensions
|
||||||
|
|
||||||
|
#ifndef _AFX_NO_OLE_SUPPORT
|
||||||
|
#include <afxole.h> // MFC OLE classes
|
||||||
|
#include <afxodlgs.h> // MFC OLE dialog classes
|
||||||
|
#include <afxdisp.h> // MFC Automation classes
|
||||||
|
#endif // _AFX_NO_OLE_SUPPORT
|
||||||
|
|
||||||
|
#ifndef _AFX_NO_DB_SUPPORT
|
||||||
|
#include <afxdb.h> // MFC ODBC database classes
|
||||||
|
#endif // _AFX_NO_DB_SUPPORT
|
||||||
|
|
||||||
|
#ifndef _AFX_NO_DAO_SUPPORT
|
||||||
|
#include <afxdao.h> // MFC DAO database classes
|
||||||
|
#endif // _AFX_NO_DAO_SUPPORT
|
||||||
|
|
||||||
|
#ifndef _AFX_NO_OLE_SUPPORT
|
||||||
|
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
|
||||||
|
#endif
|
||||||
|
#ifndef _AFX_NO_AFXCMN_SUPPORT
|
||||||
|
#include <afxcmn.h> // MFC support for Windows Common Controls
|
||||||
|
#endif // _AFX_NO_AFXCMN_SUPPORT
|
||||||
|
|
||||||
|
#include <afxsock.h> // MFC socket extensions
|
||||||
|
|
||||||
|
#include "FileTransferManager.h"
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
// The following macros define the minimum required platform. The minimum required platform
|
||||||
|
// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run
|
||||||
|
// your application. The macros work by enabling all features available on platform versions up to and
|
||||||
|
// including the version specified.
|
||||||
|
|
||||||
|
// Modify the following defines if you have to target a platform prior to the ones specified below.
|
||||||
|
// Refer to MSDN for the latest info on corresponding values for different platforms.
|
||||||
|
#ifndef WINVER // Specifies that the minimum required platform is Windows Vista.
|
||||||
|
#define WINVER 0x0600 // Change this to the appropriate value to target other versions of Windows.
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista.
|
||||||
|
#define _WIN32_WINNT 0x0600 // Change this to the appropriate value to target other versions of Windows.
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef _WIN32_WINDOWS // Specifies that the minimum required platform is Windows 98.
|
||||||
|
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef _WIN32_IE // Specifies that the minimum required platform is Internet Explorer 7.0.
|
||||||
|
#define _WIN32_IE 0x0700 // Change this to the appropriate value to target other versions of IE.
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
@ -0,0 +1,42 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||||
|
# Visual Studio 2008
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TransferSrv", "TransferSrv\TransferSrv.vcproj", "{30C05365-2DFC-4AD4-905E-8A414AE0D0A0}"
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "utiles", "..\Utiles\utiles.vcproj", "{AA58C828-7025-4A4C-868E-76B8902AF6BB}"
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FileTransfer", "FileTransfer\FileTransfer.vcproj", "{149E3D49-90F8-44E6-A4F9-BDEE84F65A70}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Win32 = Debug|Win32
|
||||||
|
Debug|x64 = Debug|x64
|
||||||
|
Release|Win32 = Release|Win32
|
||||||
|
Release|x64 = Release|x64
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{30C05365-2DFC-4AD4-905E-8A414AE0D0A0}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{30C05365-2DFC-4AD4-905E-8A414AE0D0A0}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{30C05365-2DFC-4AD4-905E-8A414AE0D0A0}.Debug|x64.ActiveCfg = Debug|Win32
|
||||||
|
{30C05365-2DFC-4AD4-905E-8A414AE0D0A0}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{30C05365-2DFC-4AD4-905E-8A414AE0D0A0}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{30C05365-2DFC-4AD4-905E-8A414AE0D0A0}.Release|x64.ActiveCfg = Release|Win32
|
||||||
|
{AA58C828-7025-4A4C-868E-76B8902AF6BB}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{AA58C828-7025-4A4C-868E-76B8902AF6BB}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{AA58C828-7025-4A4C-868E-76B8902AF6BB}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{AA58C828-7025-4A4C-868E-76B8902AF6BB}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{AA58C828-7025-4A4C-868E-76B8902AF6BB}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{AA58C828-7025-4A4C-868E-76B8902AF6BB}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{AA58C828-7025-4A4C-868E-76B8902AF6BB}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{AA58C828-7025-4A4C-868E-76B8902AF6BB}.Release|x64.Build.0 = Release|x64
|
||||||
|
{149E3D49-90F8-44E6-A4F9-BDEE84F65A70}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{149E3D49-90F8-44E6-A4F9-BDEE84F65A70}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{149E3D49-90F8-44E6-A4F9-BDEE84F65A70}.Debug|x64.ActiveCfg = Debug|Win32
|
||||||
|
{149E3D49-90F8-44E6-A4F9-BDEE84F65A70}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{149E3D49-90F8-44E6-A4F9-BDEE84F65A70}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{149E3D49-90F8-44E6-A4F9-BDEE84F65A70}.Release|x64.ActiveCfg = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
|
|
@ -0,0 +1,93 @@
|
||||||
|
#include "StdAfx.h"
|
||||||
|
#include "AppClasSrv.h"
|
||||||
|
#include "FileTransferManager.h"
|
||||||
|
#include "FileTransferFiller.h"
|
||||||
|
AppClasSrv App;
|
||||||
|
//********************************************************************************
|
||||||
|
AppClasSrv::AppClasSrv(void)
|
||||||
|
{
|
||||||
|
log.l_lisener=this;
|
||||||
|
#ifdef _DEBUG
|
||||||
|
strcpy(log.path,"C:\\Proyectos\\temp");
|
||||||
|
strcpy(log.nombre,"TransferSrv");
|
||||||
|
salir = false;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
//********************************************************************************
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
//************************************************************************************
|
||||||
|
Cproceso_cliente* AppClasSrv::crea_cliente( BOOL *pirate )
|
||||||
|
{
|
||||||
|
FileTransferManager *c = new FileTransferManager();
|
||||||
|
c->duProv = FileTransferFiller::Get();
|
||||||
|
c->exSal = pirate;
|
||||||
|
return c;
|
||||||
|
}
|
||||||
|
//************************************************************************************
|
||||||
|
void AppClasSrv::runApp()
|
||||||
|
{
|
||||||
|
while(!salir)
|
||||||
|
Sleep(1000);
|
||||||
|
}
|
||||||
|
//************************************************************************************
|
||||||
|
bool AppClasSrv::fill( Usuario_conx_0 *user, char *pathRaid )
|
||||||
|
{
|
||||||
|
if(strcmp(user->nombre, "seliuqa"))
|
||||||
|
return false;
|
||||||
|
strcpy(pathRaid,"d:\\temp\\");
|
||||||
|
strcpy(user->clave,"quilosa");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
//************************************************************************************
|
||||||
|
bool AppClasSrv::getConf( char *ip, int *port )
|
||||||
|
{
|
||||||
|
strcpy(ip,"192.168.1.60");
|
||||||
|
*port =8000;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
//************************************************************************************
|
||||||
|
//************************************************************************************
|
||||||
|
bool Cstr_arrayEx::dame( StrArray& stout )
|
||||||
|
{
|
||||||
|
if(n_i<=0)
|
||||||
|
return false;
|
||||||
|
lock_cola.entro();
|
||||||
|
|
||||||
|
stout.ind=ind;
|
||||||
|
stout.str=str;
|
||||||
|
stout.m_str=m_str;
|
||||||
|
stout.m_i=m_i;
|
||||||
|
stout.n_str=n_str;
|
||||||
|
stout.n_i=n_i;
|
||||||
|
|
||||||
|
m_str=m_i=n_i=n_str=0;
|
||||||
|
str=NULL;
|
||||||
|
ind=NULL;
|
||||||
|
lock_cola.salgo();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
//************************************************************************************
|
||||||
|
void Cstr_arrayEx::pon( char* str)
|
||||||
|
{
|
||||||
|
lock_cola.entro();
|
||||||
|
add(str);
|
||||||
|
lock_cola.salgo();
|
||||||
|
}
|
||||||
|
//************************************************************************************
|
||||||
|
|
||||||
|
//********************************************************************************
|
||||||
|
|
@ -0,0 +1,38 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "StrArray.h"
|
||||||
|
#include "lock.h"
|
||||||
|
#include "_app.h"
|
||||||
|
#include "_log.h"
|
||||||
|
#include "sock_sv.h"
|
||||||
|
#include "FileTransferDef.h"
|
||||||
|
#include "utiles_def.h"
|
||||||
|
class Cstr_arrayEx : public StrArray
|
||||||
|
{
|
||||||
|
Clock lock_cola;//lock de la cola
|
||||||
|
public:
|
||||||
|
bool dame(StrArray& stout);
|
||||||
|
void pon(char* str);
|
||||||
|
};
|
||||||
|
class AppClasSrv: public C_app, public C_escucha_log, public Cescucha_sock_sv, IDataUserProvider
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
bool salir;
|
||||||
|
AppClasSrv(void);
|
||||||
|
~AppClasSrv(void);
|
||||||
|
|
||||||
|
void runApp();
|
||||||
|
Cstr_arrayEx colaLog;//cola de mensajes del log
|
||||||
|
|
||||||
|
virtual void log_ext(__time64_t tiemp, char *modulo, char *fmt);
|
||||||
|
|
||||||
|
virtual Cproceso_cliente* crea_cliente( BOOL *pirate );
|
||||||
|
|
||||||
|
virtual bool fill( Usuario_conx_0 *user, char *pathRaid );
|
||||||
|
|
||||||
|
virtual bool getConf( char *ip, int *port );
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
extern AppClasSrv App;
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,325 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// CppSQLite3 - A C++ wrapper around the SQLite3 embedded database library.
|
||||||
|
//
|
||||||
|
// Copyright (c) 2004..2007 Rob Groves. All Rights Reserved. rob.groves@btinternet.com
|
||||||
|
//
|
||||||
|
// Permission to use, copy, modify, and distribute this software and its
|
||||||
|
// documentation for any purpose, without fee, and without a written
|
||||||
|
// agreement, is hereby granted, provided that the above copyright notice,
|
||||||
|
// this paragraph and the following two paragraphs appear in all copies,
|
||||||
|
// modifications, and distributions.
|
||||||
|
//
|
||||||
|
// IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT,
|
||||||
|
// INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST
|
||||||
|
// PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,
|
||||||
|
// EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
//
|
||||||
|
// THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
||||||
|
// PARTICULAR PURPOSE. THE SOFTWARE AND ACCOMPANYING DOCUMENTATION, IF
|
||||||
|
// ANY, PROVIDED HEREUNDER IS PROVIDED "AS IS". THE AUTHOR HAS NO OBLIGATION
|
||||||
|
// TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|
||||||
|
//
|
||||||
|
// V3.0 03/08/2004 -Initial Version for sqlite3
|
||||||
|
//
|
||||||
|
// V3.1 16/09/2004 -Implemented getXXXXField using sqlite3 functions
|
||||||
|
// -Added CppSQLiteDB3::tableExists()
|
||||||
|
//
|
||||||
|
// V3.2 01/07/2005 -Fixed execScalar to handle a NULL result
|
||||||
|
// 12/07/2007 -Added CppSQLiteDB::IsAutoCommitOn()
|
||||||
|
// -Added int64 functions to CppSQLite3Query
|
||||||
|
// -Added Name based parameter binding to CppSQLite3Statement.
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <sqlite3.h>
|
||||||
|
|
||||||
|
|
||||||
|
#define CPPSQLITE_ERROR 1000
|
||||||
|
|
||||||
|
class CppSQLite3Exception
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
CppSQLite3Exception(const int nErrCode,
|
||||||
|
char* szErrMess,
|
||||||
|
bool bDeleteMsg=true);
|
||||||
|
|
||||||
|
CppSQLite3Exception(const CppSQLite3Exception& e);
|
||||||
|
|
||||||
|
virtual ~CppSQLite3Exception();
|
||||||
|
|
||||||
|
const int errorCode() { return mnErrCode; }
|
||||||
|
|
||||||
|
const char* errorMessage() { return mpszErrMess; }
|
||||||
|
|
||||||
|
static const char* errorCodeAsString(int nErrCode);
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
int mnErrCode;
|
||||||
|
char* mpszErrMess;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
class CppSQLite3Buffer
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
CppSQLite3Buffer();
|
||||||
|
|
||||||
|
~CppSQLite3Buffer();
|
||||||
|
|
||||||
|
const char* format(const char* szFormat, ...);
|
||||||
|
|
||||||
|
operator const char*() { return mpBuf; }
|
||||||
|
|
||||||
|
void clear();
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
char* mpBuf;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
class CppSQLite3Binary
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
CppSQLite3Binary();
|
||||||
|
|
||||||
|
~CppSQLite3Binary();
|
||||||
|
|
||||||
|
void setBinary(const unsigned char* pBuf, int nLen);
|
||||||
|
void setEncoded(const unsigned char* pBuf);
|
||||||
|
|
||||||
|
const unsigned char* getEncoded();
|
||||||
|
const unsigned char* getBinary();
|
||||||
|
|
||||||
|
int getBinaryLength();
|
||||||
|
|
||||||
|
unsigned char* allocBuffer(int nLen);
|
||||||
|
|
||||||
|
void clear();
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
unsigned char* mpBuf;
|
||||||
|
int mnBinaryLen;
|
||||||
|
int mnBufferLen;
|
||||||
|
int mnEncodedLen;
|
||||||
|
bool mbEncoded;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
class CppSQLite3Query
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
CppSQLite3Query();
|
||||||
|
|
||||||
|
CppSQLite3Query(const CppSQLite3Query& rQuery);
|
||||||
|
|
||||||
|
CppSQLite3Query(sqlite3* pDB,
|
||||||
|
sqlite3_stmt* pVM,
|
||||||
|
bool bEof,
|
||||||
|
bool bOwnVM=true);
|
||||||
|
|
||||||
|
CppSQLite3Query& operator=(const CppSQLite3Query& rQuery);
|
||||||
|
|
||||||
|
virtual ~CppSQLite3Query();
|
||||||
|
|
||||||
|
int numFields();
|
||||||
|
|
||||||
|
int fieldIndex(const char* szField);
|
||||||
|
const char* fieldName(int nCol);
|
||||||
|
|
||||||
|
const char* fieldDeclType(int nCol);
|
||||||
|
int fieldDataType(int nCol);
|
||||||
|
|
||||||
|
const char* fieldValue(int nField);
|
||||||
|
const char* fieldValue(const char* szField);
|
||||||
|
|
||||||
|
int getIntField(int nField, int nNullValue=0);
|
||||||
|
int getIntField(const char* szField, int nNullValue=0);
|
||||||
|
|
||||||
|
sqlite_int64 getInt64Field(int nField, sqlite_int64 nNullValue=0);
|
||||||
|
sqlite_int64 getInt64Field(const char* szField, sqlite_int64 nNullValue=0);
|
||||||
|
|
||||||
|
double getFloatField(int nField, double fNullValue=0.0);
|
||||||
|
double getFloatField(const char* szField, double fNullValue=0.0);
|
||||||
|
|
||||||
|
const char* getStringField(int nField, const char* szNullValue="");
|
||||||
|
const char* getStringField(const char* szField, const char* szNullValue="");
|
||||||
|
|
||||||
|
const unsigned char* getBlobField(int nField, int& nLen);
|
||||||
|
const unsigned char* getBlobField(const char* szField, int& nLen);
|
||||||
|
|
||||||
|
bool fieldIsNull(int nField);
|
||||||
|
bool fieldIsNull(const char* szField);
|
||||||
|
|
||||||
|
bool eof();
|
||||||
|
|
||||||
|
void nextRow();
|
||||||
|
|
||||||
|
void finalize();
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
void checkVM();
|
||||||
|
|
||||||
|
sqlite3* mpDB;
|
||||||
|
sqlite3_stmt* mpVM;
|
||||||
|
bool mbEof;
|
||||||
|
int mnCols;
|
||||||
|
bool mbOwnVM;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
class CppSQLite3Table
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
CppSQLite3Table();
|
||||||
|
|
||||||
|
CppSQLite3Table(const CppSQLite3Table& rTable);
|
||||||
|
|
||||||
|
CppSQLite3Table(char** paszResults, int nRows, int nCols);
|
||||||
|
|
||||||
|
virtual ~CppSQLite3Table();
|
||||||
|
|
||||||
|
CppSQLite3Table& operator=(const CppSQLite3Table& rTable);
|
||||||
|
|
||||||
|
int numFields();
|
||||||
|
|
||||||
|
int numRows();
|
||||||
|
|
||||||
|
const char* fieldName(int nCol);
|
||||||
|
|
||||||
|
const char* fieldValue(int nField);
|
||||||
|
const char* fieldValue(const char* szField);
|
||||||
|
|
||||||
|
int getIntField(int nField, int nNullValue=0);
|
||||||
|
int getIntField(const char* szField, int nNullValue=0);
|
||||||
|
|
||||||
|
double getFloatField(int nField, double fNullValue=0.0);
|
||||||
|
double getFloatField(const char* szField, double fNullValue=0.0);
|
||||||
|
|
||||||
|
const char* getStringField(int nField, const char* szNullValue="");
|
||||||
|
const char* getStringField(const char* szField, const char* szNullValue="");
|
||||||
|
|
||||||
|
bool fieldIsNull(int nField);
|
||||||
|
bool fieldIsNull(const char* szField);
|
||||||
|
|
||||||
|
void setRow(int nRow);
|
||||||
|
|
||||||
|
void finalize();
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
void checkResults();
|
||||||
|
|
||||||
|
int mnCols;
|
||||||
|
int mnRows;
|
||||||
|
int mnCurrentRow;
|
||||||
|
char** mpaszResults;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
class CppSQLite3Statement
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
CppSQLite3Statement();
|
||||||
|
|
||||||
|
CppSQLite3Statement(const CppSQLite3Statement& rStatement);
|
||||||
|
|
||||||
|
CppSQLite3Statement(sqlite3* pDB, sqlite3_stmt* pVM);
|
||||||
|
|
||||||
|
virtual ~CppSQLite3Statement();
|
||||||
|
|
||||||
|
CppSQLite3Statement& operator=(const CppSQLite3Statement& rStatement);
|
||||||
|
|
||||||
|
int execDML();
|
||||||
|
|
||||||
|
CppSQLite3Query execQuery();
|
||||||
|
|
||||||
|
void bind(int nParam, const char* szValue);
|
||||||
|
void bind(int nParam, const int nValue);
|
||||||
|
void bind(int nParam, const double dwValue);
|
||||||
|
void bind(int nParam, const unsigned char* blobValue, int nLen);
|
||||||
|
void bindNull(int nParam);
|
||||||
|
|
||||||
|
int bindParameterIndex(const char* szParam);
|
||||||
|
void bind(const char* szParam, const char* szValue);
|
||||||
|
void bind(const char* szParam, const int nValue);
|
||||||
|
void bind(const char* szParam, const double dwValue);
|
||||||
|
void bind(const char* szParam, const unsigned char* blobValue, int nLen);
|
||||||
|
void bindNull(const char* szParam);
|
||||||
|
|
||||||
|
void reset();
|
||||||
|
|
||||||
|
void finalize();
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
void checkDB();
|
||||||
|
void checkVM();
|
||||||
|
|
||||||
|
sqlite3* mpDB;
|
||||||
|
sqlite3_stmt* mpVM;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
class CppSQLite3DB
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
CppSQLite3DB();
|
||||||
|
|
||||||
|
virtual ~CppSQLite3DB();
|
||||||
|
|
||||||
|
void open(const char* szFile);
|
||||||
|
|
||||||
|
void close();
|
||||||
|
|
||||||
|
bool tableExists(const char* szTable);
|
||||||
|
|
||||||
|
int execDML(const char* szSQL);
|
||||||
|
|
||||||
|
CppSQLite3Query execQuery(const char* szSQL);
|
||||||
|
|
||||||
|
int execScalar(const char* szSQL, int nNullValue=0);
|
||||||
|
|
||||||
|
CppSQLite3Table getTable(const char* szSQL);
|
||||||
|
|
||||||
|
CppSQLite3Statement compileStatement(const char* szSQL);
|
||||||
|
|
||||||
|
sqlite_int64 lastRowId();
|
||||||
|
|
||||||
|
void interrupt() { sqlite3_interrupt(mpDB); }
|
||||||
|
|
||||||
|
void setBusyTimeout(int nMillisecs);
|
||||||
|
|
||||||
|
static const char* SQLiteVersion() { return SQLITE_VERSION; }
|
||||||
|
static const char* SQLiteHeaderVersion() { return SQLITE_VERSION; }
|
||||||
|
static const char* SQLiteLibraryVersion() { return sqlite3_libversion(); }
|
||||||
|
static int SQLiteLibraryVersionNumber() { return sqlite3_libversion_number(); }
|
||||||
|
|
||||||
|
bool IsAutoCommitOn();
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
CppSQLite3DB(const CppSQLite3DB& db);
|
||||||
|
CppSQLite3DB& operator=(const CppSQLite3DB& db);
|
||||||
|
|
||||||
|
sqlite3_stmt* compile(const char* szSQL);
|
||||||
|
|
||||||
|
void checkDB();
|
||||||
|
|
||||||
|
sqlite3* mpDB;
|
||||||
|
int mnBusyTimeoutMs;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,103 @@
|
||||||
|
#include "StdAfx.h"
|
||||||
|
#include "CppSQLite3.h"
|
||||||
|
#include "FileTransferFiller.h"
|
||||||
|
#include "_log.h"
|
||||||
|
#include <shlwapi.h>
|
||||||
|
|
||||||
|
#define MODULO "FileTransferFiller"
|
||||||
|
FileTransferFiller *FileTransferFiller::_instance=NULL;
|
||||||
|
//*********************************************************************************
|
||||||
|
FileTransferFiller::FileTransferFiller(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
//*********************************************************************************
|
||||||
|
FileTransferFiller::~FileTransferFiller(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
//*********************************************************************************
|
||||||
|
bool FileTransferFiller::fill( Usuario_conx_0 *user, char *pathRaid )
|
||||||
|
{
|
||||||
|
if(!db)
|
||||||
|
return FALSE;
|
||||||
|
std::string sql_select,fuelstate,str,sql_where;
|
||||||
|
|
||||||
|
sql_select = "SELECT * from clients_file_transfer";
|
||||||
|
sql_select=sql_select+" WHERE name = \""+ user->nombre+"\"";
|
||||||
|
bool res = false;
|
||||||
|
|
||||||
|
CppSQLite3Query q = db->execQuery(sql_select.c_str());
|
||||||
|
|
||||||
|
while (!q.eof() || !res)
|
||||||
|
{
|
||||||
|
|
||||||
|
user->id = q.getIntField("id", -1);
|
||||||
|
user->permisos = q.getIntField("permisos", 0);
|
||||||
|
user->id = q.getIntField("id", -1);
|
||||||
|
|
||||||
|
strcpy(user->clave, q.getStringField("clave", ""));
|
||||||
|
strcpy(pathRaid, q.getStringField("path_raid", ""));
|
||||||
|
|
||||||
|
res =true;
|
||||||
|
q.nextRow();
|
||||||
|
}
|
||||||
|
q.finalize();
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
//*********************************************************************************
|
||||||
|
bool FileTransferFiller::getConf( char *ip, int *port )
|
||||||
|
{
|
||||||
|
if(!db)
|
||||||
|
return FALSE;
|
||||||
|
std::string sql_select,fuelstate,str,sql_where;
|
||||||
|
|
||||||
|
sql_select = "SELECT * from conf_file_transfer";
|
||||||
|
bool res = false;
|
||||||
|
|
||||||
|
CppSQLite3Query q = db->execQuery(sql_select.c_str());
|
||||||
|
|
||||||
|
while (!q.eof() || !res)
|
||||||
|
{
|
||||||
|
|
||||||
|
*port = q.getIntField("port", -1);
|
||||||
|
strcpy(ip, q.getStringField("ip", ""));
|
||||||
|
res =true;
|
||||||
|
q.nextRow();
|
||||||
|
}
|
||||||
|
q.finalize();
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
//*********************************************************************************
|
||||||
|
FileTransferFiller* FileTransferFiller::Get()
|
||||||
|
{
|
||||||
|
if(!_instance)
|
||||||
|
{
|
||||||
|
_instance = new FileTransferFiller();
|
||||||
|
if(!_instance->init())
|
||||||
|
C_log::log(MODULO, "Error al inicializar db");
|
||||||
|
}
|
||||||
|
return _instance;
|
||||||
|
}
|
||||||
|
//*********************************************************************************
|
||||||
|
bool FileTransferFiller::init()
|
||||||
|
{
|
||||||
|
if (!PathFileExists(PATH_DB_FT))
|
||||||
|
{
|
||||||
|
|
||||||
|
C_log::log(MODULO, "Error no se encuentra archivo db: %s",PATH_DB_FT );
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
try
|
||||||
|
{
|
||||||
|
db = new CppSQLite3DB();
|
||||||
|
db->open(PATH_DB_FT);
|
||||||
|
}
|
||||||
|
catch (CppSQLite3Exception ex)
|
||||||
|
{
|
||||||
|
C_log::log(MODULO, "Error al arbrir db: %s",PATH_DB_FT );
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
//*********************************************************************************
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
#pragma once
|
||||||
|
#include "FileTransferDef.h"
|
||||||
|
#define PATH_DB_FT "fileTransfer.db"
|
||||||
|
//clase singelton de acceso a base de datos
|
||||||
|
class CppSQLite3DB;
|
||||||
|
class FileTransferFiller: public IDataUserProvider
|
||||||
|
{
|
||||||
|
CppSQLite3DB *db;
|
||||||
|
FileTransferFiller(void);
|
||||||
|
static FileTransferFiller* _instance;
|
||||||
|
bool init();
|
||||||
|
public:
|
||||||
|
|
||||||
|
~FileTransferFiller(void);
|
||||||
|
|
||||||
|
virtual bool getConf( char *ip, int *port );
|
||||||
|
virtual bool fill( Usuario_conx_0 *user, char *pathRaid );
|
||||||
|
|
||||||
|
|
||||||
|
static FileTransferFiller* Get();
|
||||||
|
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,49 @@
|
||||||
|
#include "StdAfx.h"
|
||||||
|
#include "PideFile.h"
|
||||||
|
#include "Csock_cl.h"
|
||||||
|
#include "DataTransfer.h"
|
||||||
|
#include "b_file.h"
|
||||||
|
#include "_log.h"
|
||||||
|
#include "FileTransferClient.h"
|
||||||
|
|
||||||
|
|
||||||
|
#define MODULO "PideFule"
|
||||||
|
PideFile::PideFile(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
PideFile::~PideFile(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void PideFile::run()
|
||||||
|
{
|
||||||
|
FileTransferClient ft;
|
||||||
|
|
||||||
|
if(!ft.conecta(ip,puerto))
|
||||||
|
|
||||||
|
{
|
||||||
|
C_log::log("PideFile", "Error al conectar a: %s:%ld",ip, puerto);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(!ft.Presenta(usu, key))
|
||||||
|
{
|
||||||
|
C_log::log("PideFile", "Error al presentarse a: %s" ,usu);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(!ft.DescargaFile(orig, dst))
|
||||||
|
{
|
||||||
|
C_log::log("PideFile", "Error al descargar orig: %s dest%ld",orig, dst);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(!ft.desconecta())
|
||||||
|
{
|
||||||
|
C_log::log("PideFile", "Error al desconectar a: %s:%ld",ip, puerto);
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
C_log::log("PideFile", "final Feliz");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
class PideFile
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
char ip[256];
|
||||||
|
int puerto;
|
||||||
|
char orig[256];
|
||||||
|
char dst[256];
|
||||||
|
char usu[32];
|
||||||
|
char key[32];
|
||||||
|
PideFile(void);
|
||||||
|
~PideFile(void);
|
||||||
|
void run();
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,46 @@
|
||||||
|
========================================================================
|
||||||
|
CONSOLE APPLICATION : TransferSrv Project Overview
|
||||||
|
========================================================================
|
||||||
|
|
||||||
|
AppWizard has created this TransferSrv application for you.
|
||||||
|
|
||||||
|
This file contains a summary of what you will find in each of the files that
|
||||||
|
make up your TransferSrv application.
|
||||||
|
|
||||||
|
|
||||||
|
TransferSrv.vcproj
|
||||||
|
This is the main project file for VC++ projects generated using an Application Wizard.
|
||||||
|
It contains information about the version of Visual C++ that generated the file, and
|
||||||
|
information about the platforms, configurations, and project features selected with the
|
||||||
|
Application Wizard.
|
||||||
|
|
||||||
|
TransferSrv.cpp
|
||||||
|
This is the main application source file.
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
AppWizard has created the following resources:
|
||||||
|
|
||||||
|
TransferSrv.rc
|
||||||
|
This is a listing of all of the Microsoft Windows resources that the
|
||||||
|
program uses. It includes the icons, bitmaps, and cursors that are stored
|
||||||
|
in the RES subdirectory. This file can be directly edited in Microsoft
|
||||||
|
Visual C++.
|
||||||
|
|
||||||
|
Resource.h
|
||||||
|
This is the standard header file, which defines new resource IDs.
|
||||||
|
Microsoft Visual C++ reads and updates this file.
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
Other standard files:
|
||||||
|
|
||||||
|
StdAfx.h, StdAfx.cpp
|
||||||
|
These files are used to build a precompiled header (PCH) file
|
||||||
|
named TransferSrv.pch and a precompiled types file named StdAfx.obj.
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
Other notes:
|
||||||
|
|
||||||
|
AppWizard uses "TODO:" comments to indicate parts of the source code you
|
||||||
|
should add to or customize.
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
//{{NO_DEPENDENCIES}}
|
||||||
|
// Microsoft Visual C++ generated include file.
|
||||||
|
// Used by TransferSrv.rc
|
||||||
|
//
|
||||||
|
|
||||||
|
#define IDS_APP_TITLE 103
|
||||||
|
|
||||||
|
// Next default values for new objects
|
||||||
|
//
|
||||||
|
#ifdef APSTUDIO_INVOKED
|
||||||
|
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||||
|
#define _APS_NEXT_RESOURCE_VALUE 101
|
||||||
|
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||||
|
#define _APS_NEXT_CONTROL_VALUE 1000
|
||||||
|
#define _APS_NEXT_SYMED_VALUE 101
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,78 @@
|
||||||
|
// TransferSrv.cpp : Defines the entry point for the console application.
|
||||||
|
//
|
||||||
|
|
||||||
|
#include "stdafx.h"
|
||||||
|
#include "TransferSrv.h"
|
||||||
|
#include "sock_sv.h"
|
||||||
|
#include "AppClasSrv.h"
|
||||||
|
#ifdef _DEBUG
|
||||||
|
#define new DEBUG_NEW
|
||||||
|
#endif
|
||||||
|
#include "PideFile.h"
|
||||||
|
#include "FileTransferFiller.h"
|
||||||
|
|
||||||
|
|
||||||
|
// The one and only application object
|
||||||
|
|
||||||
|
CWinApp theApp;
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
|
||||||
|
{
|
||||||
|
int nRetCode = 0;
|
||||||
|
|
||||||
|
// initialize MFC and print and error on failure
|
||||||
|
if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
|
||||||
|
{
|
||||||
|
// TODO: change error code to suit your needs
|
||||||
|
_tprintf(_T("Fatal Error: MFC initialization failed\n"));
|
||||||
|
nRetCode = 1;
|
||||||
|
return nRetCode;
|
||||||
|
}
|
||||||
|
//AfxSocketInit();
|
||||||
|
if(argc==1)
|
||||||
|
{
|
||||||
|
//modo servidor
|
||||||
|
Csock_svThread sc;
|
||||||
|
sc.escucha = &App;
|
||||||
|
char ip[128];
|
||||||
|
int port;
|
||||||
|
FileTransferFiller::Get()->getConf(ip, &port);
|
||||||
|
if(sc.liseningThread(port,ip))
|
||||||
|
{
|
||||||
|
C_log::log("_tmain", "Servidor activo");
|
||||||
|
App.runApp();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if(argc==7)
|
||||||
|
{
|
||||||
|
App.log.path[0]=0;
|
||||||
|
PideFile pf;
|
||||||
|
strcpy(pf.ip, argv[1]);
|
||||||
|
pf.puerto = atoi( argv[2]);
|
||||||
|
strcpy(pf.usu, argv[3]);
|
||||||
|
strcpy(pf.key, argv[4]);
|
||||||
|
strcpy(pf.orig, argv[5]);
|
||||||
|
strcpy(pf.dst, argv[6]);
|
||||||
|
|
||||||
|
pf.run();
|
||||||
|
system("pause");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_tprintf("argumentos no validos\n");
|
||||||
|
_tprintf("arg1 -> ip\n");
|
||||||
|
_tprintf("arg2 -> puerto\n");
|
||||||
|
_tprintf("arg3 -> usuario\n");
|
||||||
|
_tprintf("arg4 -> key\n");
|
||||||
|
_tprintf("arg5 -> path orig\n");
|
||||||
|
_tprintf("arg6 -> path dst\n");
|
||||||
|
|
||||||
|
|
||||||
|
system("pause");
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
return nRetCode;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "resource.h"
|
||||||
|
|
@ -0,0 +1,125 @@
|
||||||
|
// Microsoft Visual C++ generated resource script.
|
||||||
|
//
|
||||||
|
#include "resource.h"
|
||||||
|
|
||||||
|
#define APSTUDIO_READONLY_SYMBOLS
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// Generated from the TEXTINCLUDE 2 resource.
|
||||||
|
//
|
||||||
|
#include "afxres.h"
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// English (U.S.) resources
|
||||||
|
|
||||||
|
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||||
|
#ifdef _WIN32
|
||||||
|
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||||
|
#pragma code_page(1252)
|
||||||
|
#endif //_WIN32
|
||||||
|
|
||||||
|
#ifdef APSTUDIO_INVOKED
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// TEXTINCLUDE
|
||||||
|
//
|
||||||
|
|
||||||
|
1 TEXTINCLUDE
|
||||||
|
BEGIN
|
||||||
|
"resource.h\0"
|
||||||
|
END
|
||||||
|
|
||||||
|
2 TEXTINCLUDE
|
||||||
|
BEGIN
|
||||||
|
"#include ""afxres.h""\r\n"
|
||||||
|
"\0"
|
||||||
|
END
|
||||||
|
|
||||||
|
3 TEXTINCLUDE
|
||||||
|
BEGIN
|
||||||
|
"\r\n"
|
||||||
|
"\0"
|
||||||
|
END
|
||||||
|
|
||||||
|
#endif // APSTUDIO_INVOKED
|
||||||
|
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// String Table
|
||||||
|
//
|
||||||
|
|
||||||
|
STRINGTABLE
|
||||||
|
BEGIN
|
||||||
|
IDS_APP_TITLE "TransferSrv"
|
||||||
|
END
|
||||||
|
|
||||||
|
#endif // English (U.S.) resources
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Spanish resources
|
||||||
|
|
||||||
|
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ESN)
|
||||||
|
#ifdef _WIN32
|
||||||
|
LANGUAGE LANG_SPANISH, SUBLANG_SPANISH_MODERN
|
||||||
|
#pragma code_page(1252)
|
||||||
|
#endif //_WIN32
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// Version
|
||||||
|
//
|
||||||
|
|
||||||
|
VS_VERSION_INFO VERSIONINFO
|
||||||
|
FILEVERSION 1,0,0,1
|
||||||
|
PRODUCTVERSION 1,0,0,1
|
||||||
|
FILEFLAGSMASK 0x17L
|
||||||
|
#ifdef _DEBUG
|
||||||
|
FILEFLAGS 0x1L
|
||||||
|
#else
|
||||||
|
FILEFLAGS 0x0L
|
||||||
|
#endif
|
||||||
|
FILEOS 0x4L
|
||||||
|
FILETYPE 0x1L
|
||||||
|
FILESUBTYPE 0x0L
|
||||||
|
BEGIN
|
||||||
|
BLOCK "StringFileInfo"
|
||||||
|
BEGIN
|
||||||
|
BLOCK "0c0a04b0"
|
||||||
|
BEGIN
|
||||||
|
VALUE "CompanyName", "Narvaling"
|
||||||
|
VALUE "FileDescription", "Servidor del gestor de Versiones"
|
||||||
|
VALUE "FileVersion", "1.0.01"
|
||||||
|
VALUE "InternalName", "TransferSrv"
|
||||||
|
VALUE "LegalCopyright", "(c) Narvaling. All rights reserved."
|
||||||
|
VALUE "OriginalFilename", "TransferSrv.exe"
|
||||||
|
VALUE "ProductName", "TransferSrv"
|
||||||
|
VALUE "ProductVersion", "1.0.01"
|
||||||
|
END
|
||||||
|
END
|
||||||
|
BLOCK "VarFileInfo"
|
||||||
|
BEGIN
|
||||||
|
VALUE "Translation", 0xc0a, 1200
|
||||||
|
END
|
||||||
|
END
|
||||||
|
|
||||||
|
#endif // Spanish resources
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef APSTUDIO_INVOKED
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// Generated from the TEXTINCLUDE 3 resource.
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
#endif // not APSTUDIO_INVOKED
|
||||||
|
|
||||||
|
|
@ -0,0 +1,455 @@
|
||||||
|
<?xml version="1.0" encoding="Windows-1252"?>
|
||||||
|
<VisualStudioProject
|
||||||
|
ProjectType="Visual C++"
|
||||||
|
Version="9,00"
|
||||||
|
Name="TransferSrv"
|
||||||
|
ProjectGUID="{30C05365-2DFC-4AD4-905E-8A414AE0D0A0}"
|
||||||
|
RootNamespace="TransferSrv"
|
||||||
|
Keyword="Win32Proj"
|
||||||
|
TargetFrameworkVersion="196613"
|
||||||
|
>
|
||||||
|
<Platforms>
|
||||||
|
<Platform
|
||||||
|
Name="Win32"
|
||||||
|
/>
|
||||||
|
<Platform
|
||||||
|
Name="x64"
|
||||||
|
/>
|
||||||
|
</Platforms>
|
||||||
|
<ToolFiles>
|
||||||
|
</ToolFiles>
|
||||||
|
<Configurations>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||||
|
IntermediateDirectory="$(ConfigurationName)"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="2"
|
||||||
|
CharacterSet="2"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories="..\..\Utiles;..\FileTransfer;..\..\sqlite3"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
||||||
|
MinimalRebuild="true"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
UsePrecompiledHeader="2"
|
||||||
|
WarningLevel="3"
|
||||||
|
DebugInformationFormat="4"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies="utiles.lib FileTransfer.lib sqlite3.lib"
|
||||||
|
LinkIncremental="2"
|
||||||
|
AdditionalLibraryDirectories=""..\..\..\lib\$(ConfigurationName)""
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
SubSystem="1"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
CommandLine="copy $(TargetDir)\$(TargetFileName) ..\..\..\bin\$(ConfigurationName)\$(TargetFileName)
copy ..\data\filetransfer.db ..\..\..\bin\$(ConfigurationName)
"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|x64"
|
||||||
|
OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
|
||||||
|
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="2"
|
||||||
|
CharacterSet="2"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
TargetEnvironment="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories="..\..\Utiles;..\FileTransfer;..\..\sqlite3"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
||||||
|
MinimalRebuild="true"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
UsePrecompiledHeader="2"
|
||||||
|
WarningLevel="3"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies="utiles.lib FileTransfer.lib sqlite3.lib"
|
||||||
|
LinkIncremental="2"
|
||||||
|
AdditionalLibraryDirectories=""..\..\..\lib\x64\$(ConfigurationName)""
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
SubSystem="1"
|
||||||
|
TargetMachine="17"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
CommandLine="copy $(TargetDir)\$(TargetFileName) ..\..\..\bin\x64\$(ConfigurationName)\$(TargetFileName)
copy ..\data\filetransfer.db ..\..\..\bin\x64\$(ConfigurationName)
"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|Win32"
|
||||||
|
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||||
|
IntermediateDirectory="$(ConfigurationName)"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="2"
|
||||||
|
CharacterSet="2"
|
||||||
|
WholeProgramOptimization="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="2"
|
||||||
|
EnableIntrinsicFunctions="true"
|
||||||
|
AdditionalIncludeDirectories="..\..\Utiles;..\FileTransfer;..\..\sqlite3"
|
||||||
|
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
EnableFunctionLevelLinking="true"
|
||||||
|
UsePrecompiledHeader="2"
|
||||||
|
WarningLevel="3"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies="utiles.lib FileTransfer.lib sqlite3.lib"
|
||||||
|
LinkIncremental="1"
|
||||||
|
AdditionalLibraryDirectories=""..\..\..\lib\$(ConfigurationName)""
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
SubSystem="1"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
CommandLine="copy $(TargetDir)\$(TargetFileName) ..\..\..\bin\$(ConfigurationName)\$(TargetFileName)
copy ..\data\filetransfer.db ..\..\..\bin\$(ConfigurationName)
"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|x64"
|
||||||
|
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
|
||||||
|
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="2"
|
||||||
|
CharacterSet="2"
|
||||||
|
WholeProgramOptimization="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
TargetEnvironment="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="2"
|
||||||
|
EnableIntrinsicFunctions="true"
|
||||||
|
AdditionalIncludeDirectories="..\..\Utiles;..\FileTransfer;..\..\sqlite3"
|
||||||
|
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
EnableFunctionLevelLinking="true"
|
||||||
|
UsePrecompiledHeader="2"
|
||||||
|
WarningLevel="3"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies="utiles.lib FileTransfer.lib sqlite3.lib"
|
||||||
|
LinkIncremental="1"
|
||||||
|
AdditionalLibraryDirectories=""..\..\..\lib\x64\$(ConfigurationName)""
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
SubSystem="1"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"
|
||||||
|
TargetMachine="17"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
CommandLine="copy $(TargetDir)\$(TargetFileName) ..\..\..\bin\x64\$(ConfigurationName)\$(TargetFileName)
copy ..\data\filetransfer.db ..\..\..\bin\x64\$(ConfigurationName)"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
</Configurations>
|
||||||
|
<References>
|
||||||
|
</References>
|
||||||
|
<Files>
|
||||||
|
<Filter
|
||||||
|
Name="Source Files"
|
||||||
|
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||||
|
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\AppClasSrv.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\CppSQLite3.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\FileTransferFiller.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\PideFile.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\stdafx.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="1"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="1"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="1"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="1"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\TransferSrv.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Header Files"
|
||||||
|
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||||
|
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\AppClasSrv.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\CppSQLite3.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\FileTransferFiller.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\PideFile.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\Resource.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\stdafx.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\targetver.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\TransferSrv.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Resource Files"
|
||||||
|
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
||||||
|
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\TransferSrv.rc"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<File
|
||||||
|
RelativePath=".\ReadMe.txt"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Files>
|
||||||
|
<Globals>
|
||||||
|
</Globals>
|
||||||
|
</VisualStudioProject>
|
||||||
|
|
@ -0,0 +1,121 @@
|
||||||
|
<?xml version="1.0" encoding="Windows-1252"?>
|
||||||
|
<VisualStudioUserFile
|
||||||
|
ProjectType="Visual C++"
|
||||||
|
Version="9,00"
|
||||||
|
ShowAllFiles="false"
|
||||||
|
>
|
||||||
|
<Configurations>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<DebugSettings
|
||||||
|
Command="$(TargetPath)"
|
||||||
|
WorkingDirectory=""
|
||||||
|
CommandArguments=""
|
||||||
|
Attach="false"
|
||||||
|
DebuggerType="3"
|
||||||
|
Remote="1"
|
||||||
|
RemoteMachine="NELIAM"
|
||||||
|
RemoteCommand=""
|
||||||
|
HttpUrl=""
|
||||||
|
PDBPath=""
|
||||||
|
SQLDebugging=""
|
||||||
|
Environment=""
|
||||||
|
EnvironmentMerge="true"
|
||||||
|
DebuggerFlavor=""
|
||||||
|
MPIRunCommand=""
|
||||||
|
MPIRunArguments=""
|
||||||
|
MPIRunWorkingDirectory=""
|
||||||
|
ApplicationCommand=""
|
||||||
|
ApplicationArguments=""
|
||||||
|
ShimCommand=""
|
||||||
|
MPIAcceptMode=""
|
||||||
|
MPIAcceptFilter=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|x64"
|
||||||
|
>
|
||||||
|
<DebugSettings
|
||||||
|
Command="$(TargetPath)"
|
||||||
|
WorkingDirectory=""
|
||||||
|
CommandArguments=""
|
||||||
|
Attach="false"
|
||||||
|
DebuggerType="3"
|
||||||
|
Remote="1"
|
||||||
|
RemoteMachine="NELIAM"
|
||||||
|
RemoteCommand=""
|
||||||
|
HttpUrl=""
|
||||||
|
PDBPath=""
|
||||||
|
SQLDebugging=""
|
||||||
|
Environment=""
|
||||||
|
EnvironmentMerge="true"
|
||||||
|
DebuggerFlavor=""
|
||||||
|
MPIRunCommand=""
|
||||||
|
MPIRunArguments=""
|
||||||
|
MPIRunWorkingDirectory=""
|
||||||
|
ApplicationCommand=""
|
||||||
|
ApplicationArguments=""
|
||||||
|
ShimCommand=""
|
||||||
|
MPIAcceptMode=""
|
||||||
|
MPIAcceptFilter=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<DebugSettings
|
||||||
|
Command="$(TargetPath)"
|
||||||
|
WorkingDirectory=""
|
||||||
|
CommandArguments=""
|
||||||
|
Attach="false"
|
||||||
|
DebuggerType="3"
|
||||||
|
Remote="1"
|
||||||
|
RemoteMachine="NELIAM"
|
||||||
|
RemoteCommand=""
|
||||||
|
HttpUrl=""
|
||||||
|
PDBPath=""
|
||||||
|
SQLDebugging=""
|
||||||
|
Environment=""
|
||||||
|
EnvironmentMerge="true"
|
||||||
|
DebuggerFlavor=""
|
||||||
|
MPIRunCommand=""
|
||||||
|
MPIRunArguments=""
|
||||||
|
MPIRunWorkingDirectory=""
|
||||||
|
ApplicationCommand=""
|
||||||
|
ApplicationArguments=""
|
||||||
|
ShimCommand=""
|
||||||
|
MPIAcceptMode=""
|
||||||
|
MPIAcceptFilter=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|x64"
|
||||||
|
>
|
||||||
|
<DebugSettings
|
||||||
|
Command="$(TargetPath)"
|
||||||
|
WorkingDirectory=""
|
||||||
|
CommandArguments=""
|
||||||
|
Attach="false"
|
||||||
|
DebuggerType="3"
|
||||||
|
Remote="1"
|
||||||
|
RemoteMachine="NELIAM"
|
||||||
|
RemoteCommand=""
|
||||||
|
HttpUrl=""
|
||||||
|
PDBPath=""
|
||||||
|
SQLDebugging=""
|
||||||
|
Environment=""
|
||||||
|
EnvironmentMerge="true"
|
||||||
|
DebuggerFlavor=""
|
||||||
|
MPIRunCommand=""
|
||||||
|
MPIRunArguments=""
|
||||||
|
MPIRunWorkingDirectory=""
|
||||||
|
ApplicationCommand=""
|
||||||
|
ApplicationArguments=""
|
||||||
|
ShimCommand=""
|
||||||
|
MPIAcceptMode=""
|
||||||
|
MPIAcceptFilter=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
</Configurations>
|
||||||
|
</VisualStudioUserFile>
|
||||||
|
|
@ -0,0 +1,121 @@
|
||||||
|
<?xml version="1.0" encoding="Windows-1252"?>
|
||||||
|
<VisualStudioUserFile
|
||||||
|
ProjectType="Visual C++"
|
||||||
|
Version="9,00"
|
||||||
|
ShowAllFiles="false"
|
||||||
|
>
|
||||||
|
<Configurations>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<DebugSettings
|
||||||
|
Command="..\..\..\bin\$(ConfigurationName)\$(TargetFileName)"
|
||||||
|
WorkingDirectory="..\..\..\bin\$(ConfigurationName)"
|
||||||
|
CommandArguments="aa"
|
||||||
|
Attach="false"
|
||||||
|
DebuggerType="3"
|
||||||
|
Remote="1"
|
||||||
|
RemoteMachine="YANDRAK"
|
||||||
|
RemoteCommand=""
|
||||||
|
HttpUrl=""
|
||||||
|
PDBPath=""
|
||||||
|
SQLDebugging=""
|
||||||
|
Environment=""
|
||||||
|
EnvironmentMerge="true"
|
||||||
|
DebuggerFlavor="0"
|
||||||
|
MPIRunCommand=""
|
||||||
|
MPIRunArguments=""
|
||||||
|
MPIRunWorkingDirectory=""
|
||||||
|
ApplicationCommand=""
|
||||||
|
ApplicationArguments=""
|
||||||
|
ShimCommand=""
|
||||||
|
MPIAcceptMode=""
|
||||||
|
MPIAcceptFilter=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|x64"
|
||||||
|
>
|
||||||
|
<DebugSettings
|
||||||
|
Command="$(TargetPath)"
|
||||||
|
WorkingDirectory=""
|
||||||
|
CommandArguments=""
|
||||||
|
Attach="false"
|
||||||
|
DebuggerType="3"
|
||||||
|
Remote="1"
|
||||||
|
RemoteMachine="YANDRAK"
|
||||||
|
RemoteCommand=""
|
||||||
|
HttpUrl=""
|
||||||
|
PDBPath=""
|
||||||
|
SQLDebugging=""
|
||||||
|
Environment=""
|
||||||
|
EnvironmentMerge="true"
|
||||||
|
DebuggerFlavor=""
|
||||||
|
MPIRunCommand=""
|
||||||
|
MPIRunArguments=""
|
||||||
|
MPIRunWorkingDirectory=""
|
||||||
|
ApplicationCommand=""
|
||||||
|
ApplicationArguments=""
|
||||||
|
ShimCommand=""
|
||||||
|
MPIAcceptMode=""
|
||||||
|
MPIAcceptFilter=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<DebugSettings
|
||||||
|
Command="$(TargetPath)"
|
||||||
|
WorkingDirectory=""
|
||||||
|
CommandArguments=""
|
||||||
|
Attach="false"
|
||||||
|
DebuggerType="3"
|
||||||
|
Remote="1"
|
||||||
|
RemoteMachine="YANDRAK"
|
||||||
|
RemoteCommand=""
|
||||||
|
HttpUrl=""
|
||||||
|
PDBPath=""
|
||||||
|
SQLDebugging=""
|
||||||
|
Environment=""
|
||||||
|
EnvironmentMerge="true"
|
||||||
|
DebuggerFlavor=""
|
||||||
|
MPIRunCommand=""
|
||||||
|
MPIRunArguments=""
|
||||||
|
MPIRunWorkingDirectory=""
|
||||||
|
ApplicationCommand=""
|
||||||
|
ApplicationArguments=""
|
||||||
|
ShimCommand=""
|
||||||
|
MPIAcceptMode=""
|
||||||
|
MPIAcceptFilter=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|x64"
|
||||||
|
>
|
||||||
|
<DebugSettings
|
||||||
|
Command="$(TargetPath)"
|
||||||
|
WorkingDirectory=""
|
||||||
|
CommandArguments=""
|
||||||
|
Attach="false"
|
||||||
|
DebuggerType="3"
|
||||||
|
Remote="1"
|
||||||
|
RemoteMachine="YANDRAK"
|
||||||
|
RemoteCommand=""
|
||||||
|
HttpUrl=""
|
||||||
|
PDBPath=""
|
||||||
|
SQLDebugging=""
|
||||||
|
Environment=""
|
||||||
|
EnvironmentMerge="true"
|
||||||
|
DebuggerFlavor=""
|
||||||
|
MPIRunCommand=""
|
||||||
|
MPIRunArguments=""
|
||||||
|
MPIRunWorkingDirectory=""
|
||||||
|
ApplicationCommand=""
|
||||||
|
ApplicationArguments=""
|
||||||
|
ShimCommand=""
|
||||||
|
MPIAcceptMode=""
|
||||||
|
MPIAcceptFilter=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
</Configurations>
|
||||||
|
</VisualStudioUserFile>
|
||||||
|
|
@ -0,0 +1,240 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{30C05365-2DFC-4AD4-905E-8A414AE0D0A0}</ProjectGuid>
|
||||||
|
<RootNamespace>TransferSrv</RootNamespace>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<PlatformToolset>v141</PlatformToolset>
|
||||||
|
<UseOfMfc>Dynamic</UseOfMfc>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<PlatformToolset>v141</PlatformToolset>
|
||||||
|
<UseOfMfc>Dynamic</UseOfMfc>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<PlatformToolset>v141</PlatformToolset>
|
||||||
|
<UseOfMfc>Dynamic</UseOfMfc>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<PlatformToolset>v141</PlatformToolset>
|
||||||
|
<UseOfMfc>Dynamic</UseOfMfc>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<_ProjectFileVersion>15.0.28127.55</_ProjectFileVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
|
||||||
|
<IntDir>$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
||||||
|
<IntDir>$(Platform)\$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
|
||||||
|
<IntDir>$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<OutDir>$(Platform)\$(Configuration)\</OutDir>
|
||||||
|
<IntDir>$(Platform)\$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<AdditionalIncludeDirectories>..\..\Utiles;..\FileTransfer;..\..\sqlite3;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<MinimalRebuild>true</MinimalRebuild>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>utiles.lib;FileTransfer.lib;sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>..\..\..\lib\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
</Link>
|
||||||
|
<PostBuildEvent>
|
||||||
|
<Command>copy $(OutDir)$(TargetFileName) ..\..\bin\$(IntDir)
|
||||||
|
copy ..\data\filetransfer.db ..\..\bin\$(IntDir)</Command>
|
||||||
|
</PostBuildEvent>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<Midl>
|
||||||
|
<TargetEnvironment>X64</TargetEnvironment>
|
||||||
|
</Midl>
|
||||||
|
<ClCompile>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<AdditionalIncludeDirectories>..\..\Utiles;..\FileTransfer;..\..\sqlite3;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<MinimalRebuild>true</MinimalRebuild>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>utiles.lib;FileTransfer.lib;sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>..\..\..\lib\x64\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<TargetMachine>MachineX64</TargetMachine>
|
||||||
|
</Link>
|
||||||
|
<PostBuildEvent>
|
||||||
|
<Command>copy $(OutDir)$(TargetFileName) ..\..\bin\$(IntDir)
|
||||||
|
copy ..\data\filetransfer.db ..\..\bin\$(IntDir)</Command>
|
||||||
|
</PostBuildEvent>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<Optimization>MaxSpeed</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<AdditionalIncludeDirectories>..\..\Utiles;..\FileTransfer;..\..\sqlite3;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>utiles.lib;FileTransfer.lib;sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>..\..\..\lib\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
</Link>
|
||||||
|
<PostBuildEvent>
|
||||||
|
<Command>copy $(OutDir)$(TargetFileName) ..\..\bin\$(IntDir)
|
||||||
|
copy ..\data\filetransfer.db ..\..\bin\$(IntDir)</Command>
|
||||||
|
</PostBuildEvent>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<Midl>
|
||||||
|
<TargetEnvironment>X64</TargetEnvironment>
|
||||||
|
</Midl>
|
||||||
|
<ClCompile>
|
||||||
|
<Optimization>MaxSpeed</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<AdditionalIncludeDirectories>..\..\Utiles;..\FileTransfer;..\..\sqlite3;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>utiles.lib;FileTransfer.lib;sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>..\..\..\lib\x64\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<TargetMachine>MachineX64</TargetMachine>
|
||||||
|
</Link>
|
||||||
|
<PostBuildEvent>
|
||||||
|
<Command>copy $(OutDir)$(TargetFileName) ..\..\bin\$(IntDir)
|
||||||
|
copy ..\data\filetransfer.db ..\..\bin\$(IntDir)</Command>
|
||||||
|
</PostBuildEvent>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="AppClasSrv.cpp" />
|
||||||
|
<ClCompile Include="CppSQLite3.cpp" />
|
||||||
|
<ClCompile Include="FileTransferFiller.cpp" />
|
||||||
|
<ClCompile Include="PideFile.cpp" />
|
||||||
|
<ClCompile Include="stdafx.cpp">
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="TransferSrv.cpp" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="AppClasSrv.h" />
|
||||||
|
<ClInclude Include="CppSQLite3.h" />
|
||||||
|
<ClInclude Include="FileTransferFiller.h" />
|
||||||
|
<ClInclude Include="PideFile.h" />
|
||||||
|
<ClInclude Include="Resource.h" />
|
||||||
|
<ClInclude Include="stdafx.h" />
|
||||||
|
<ClInclude Include="targetver.h" />
|
||||||
|
<ClInclude Include="TransferSrv.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ResourceCompile Include="TransferSrv.rc" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="ReadMe.txt" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\Utiles\utiles.vcxproj">
|
||||||
|
<Project>{aa58c828-7025-4a4c-868e-76b8902af6bb}</Project>
|
||||||
|
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||||
|
</ProjectReference>
|
||||||
|
<ProjectReference Include="..\FileTransfer\FileTransfer.vcxproj">
|
||||||
|
<Project>{149e3d49-90f8-44e6-a4f9-bdee84f65a70}</Project>
|
||||||
|
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
||||||
|
|
@ -0,0 +1,71 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Resource Files">
|
||||||
|
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||||
|
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="AppClasSrv.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="CppSQLite3.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="FileTransferFiller.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="PideFile.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="stdafx.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="TransferSrv.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="AppClasSrv.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="CppSQLite3.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="FileTransferFiller.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="PideFile.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="Resource.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="stdafx.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="targetver.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="TransferSrv.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ResourceCompile Include="TransferSrv.rc">
|
||||||
|
<Filter>Resource Files</Filter>
|
||||||
|
</ResourceCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="ReadMe.txt" />
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup />
|
||||||
|
</Project>
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
// stdafx.cpp : source file that includes just the standard includes
|
||||||
|
// TransferSrv.pch will be the pre-compiled header
|
||||||
|
// stdafx.obj will contain the pre-compiled type information
|
||||||
|
|
||||||
|
#include "stdafx.h"
|
||||||
|
|
||||||
|
// TODO: reference any additional headers you need in STDAFX.H
|
||||||
|
// and not in this file
|
||||||
|
|
@ -0,0 +1,32 @@
|
||||||
|
// stdafx.h : include file for standard system include files,
|
||||||
|
// or project specific include files that are used frequently, but
|
||||||
|
// are changed infrequently
|
||||||
|
//
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "targetver.h"
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <tchar.h>
|
||||||
|
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
|
||||||
|
|
||||||
|
#ifndef VC_EXTRALEAN
|
||||||
|
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <afx.h>
|
||||||
|
#include <afxwin.h> // MFC core and standard components
|
||||||
|
#include <afxext.h> // MFC extensions
|
||||||
|
#ifndef _AFX_NO_OLE_SUPPORT
|
||||||
|
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
|
||||||
|
#endif
|
||||||
|
#ifndef _AFX_NO_AFXCMN_SUPPORT
|
||||||
|
#include <afxcmn.h> // MFC support for Windows Common Controls
|
||||||
|
#endif // _AFX_NO_AFXCMN_SUPPORT
|
||||||
|
#include <iostream>
|
||||||
|
#include "base_head.h"
|
||||||
|
#include "garray.h"
|
||||||
|
#include "utiles_def.h"
|
||||||
|
|
||||||
|
// TODO: reference additional headers your program requires here
|
||||||
|
|
@ -0,0 +1,24 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
// The following macros define the minimum required platform. The minimum required platform
|
||||||
|
// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run
|
||||||
|
// your application. The macros work by enabling all features available on platform versions up to and
|
||||||
|
// including the version specified.
|
||||||
|
|
||||||
|
// Modify the following defines if you have to target a platform prior to the ones specified below.
|
||||||
|
// Refer to MSDN for the latest info on corresponding values for different platforms.
|
||||||
|
#ifndef WINVER // Specifies that the minimum required platform is Windows Vista.
|
||||||
|
#define WINVER 0x0600 // Change this to the appropriate value to target other versions of Windows.
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista.
|
||||||
|
#define _WIN32_WINNT 0x0600 // Change this to the appropriate value to target other versions of Windows.
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef _WIN32_WINDOWS // Specifies that the minimum required platform is Windows 98.
|
||||||
|
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef _WIN32_IE // Specifies that the minimum required platform is Internet Explorer 7.0.
|
||||||
|
#define _WIN32_IE 0x0700 // Change this to the appropriate value to target other versions of IE.
|
||||||
|
#endif
|
||||||
Binary file not shown.
Loading…
Reference in New Issue