⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ftp_test.c

📁 C语言源代码及相关资料
💻 C
字号:
#include <utility.h>
#include <stdio.h>

#include "ftpdwl.h"
#include "gprs_a.h"

void	clearfile ( char * pfile );
void	logfile ( char * plogfile, unsigned char * p, int size );

int		ftp_log ( unsigned char * p, int nbytes, int seek )
{
	if ( seek >= 0 ) logfile ( "USERTEST", p, nbytes );
	                 logfile ( "USERTEST.dbg", p, nbytes );
	return 1;
}
#if 0
void	ftp_test ( void )
{
//	GPRS_connect ( "INTERNET" );
int	i;
int	nbytes;
int	size = 87300;

	clearfile ( "aipr.log" );
	clearfile ( "USERTEST" );

	for ( i = 0; i < size; )
	{
		nbytes = 10240;
		if ( size - i < nbytes ) nbytes = size - i;

		while (!ftp_dwl ( "221.231.140.211", 1596, "slg", "123", "TOMFILE",     i, nbytes, ftp_log ) ) ;//printf ( "\n\nERROR!!!!!!!!!\n\n" );

		i += nbytes;
#ifdef	_CVI_
		printf ( "\n\n\tByte recieved : %08d done\n\n", i );
		Delay ( 3 );
#endif
	}
	while ( 1 ) printf ( "DWL OK\n" );
}
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -