a
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
// FileTransfer.h: interface for the FileTransfer class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if !defined(AFX_FILETRANSFER_H__139571F4_4244_45CC_9F37_D701D4AB72D6__INCLUDED_)
|
||||
#define AFX_FILETRANSFER_H__139571F4_4244_45CC_9F37_D701D4AB72D6__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
|
||||
#include "SComPort.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
#include "crc16.h"
|
||||
#include "crc32.h"
|
||||
//#include "ascii.h"
|
||||
//#include "zmodem.h"
|
||||
#include "_zmodem.h"
|
||||
|
||||
#define BUFFSIZE 16384
|
||||
|
||||
class FileTransfer
|
||||
{
|
||||
protected :
|
||||
virtual void error( char *fmt, ... );
|
||||
virtual void status( char *fmt, ... );
|
||||
CSComPort *port;
|
||||
FILE *file;
|
||||
long file_length;
|
||||
long byte_count;
|
||||
int file_count;
|
||||
char file_name[ 128 ];
|
||||
char buffer[BUFFSIZE];
|
||||
|
||||
public :
|
||||
virtual BOOL Send( char *files[] ) = 0;
|
||||
virtual BOOL Receive( CString Path ) = 0;
|
||||
// public:
|
||||
// FileTransfer();
|
||||
// virtual ~FileTransfer();
|
||||
|
||||
};
|
||||
|
||||
#endif // !defined(AFX_FILETRANSFER_H__139571F4_4244_45CC_9F37_D701D4AB72D6__INCLUDED_)
|
||||
Reference in New Issue
Block a user