47 lines
869 B
C++
47 lines
869 B
C++
// FileTransfer.cpp: implementation of the FileTransfer class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#include "stdafx.h"
|
|
#include "FileTransfer.h"
|
|
|
|
#ifdef _DEBUG
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[]=__FILE__;
|
|
#define new DEBUG_NEW
|
|
#endif
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
// Construction/Destruction
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
// FileTransfer::FileTransfer()
|
|
// {
|
|
//
|
|
// }
|
|
//
|
|
// FileTransfer::~FileTransfer()
|
|
// {
|
|
//
|
|
// }
|
|
|
|
void FileTransfer::error( char *fmt, ... )
|
|
{
|
|
va_list argptr;
|
|
|
|
va_start( argptr, fmt );
|
|
vprintf( fmt, argptr );
|
|
putc( '\n', stdout );
|
|
va_end( argptr );
|
|
}
|
|
|
|
void FileTransfer::status( char *fmt, ... )
|
|
{
|
|
va_list argptr;
|
|
|
|
va_start( argptr, fmt );
|
|
vprintf( fmt, argptr );
|
|
putc( '\n', stdout );
|
|
va_end( argptr );
|
|
}
|