ftpmain.c
来自「DOS下的TCP/IP源代码,可以做参考.」· C语言 代码 · 共 24 行
C
24 行
#include <stdio.h>
#include <string.h>
#include <conio.h>
#include "tcplib.h"
//========================================================
int main(void)
{int rc;
//setcurrentpath("c:\\ehttp");
init_tcplib();
settcpdebug(0);
setftpuserpass("","",0); //Start a FTP server
setftpuserpass("hls","hls",2);
setftptime(60,180);
startftp();
while (1)
{if (kbhit()) if (getch() == 27) return 0;
rc=checkftp(); //Monitoring FTP user login
if (rc==1) Serveftp();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?