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

📄 features.c

📁 linux下的轻量级的ftp服务器
💻 C
字号:
/* * Part of Very Secure FTPd * Licence: GPL v2 * Author: Chris Evans * features.c * * Routines to tell the client what features we support. */#include "features.h"#include "ftpcodes.h"#include "ftpcmdio.h"#include "tunables.h"voidhandle_feat(struct vsf_session* p_sess){  vsf_cmdio_write_hyphen(p_sess, FTP_FEAT, "Features:");  if (tunable_ssl_enable)  {    vsf_cmdio_write_raw(p_sess, " AUTH SSL\r\n");    vsf_cmdio_write_raw(p_sess, " AUTH TLS\r\n");  }  if (tunable_port_enable)  {    vsf_cmdio_write_raw(p_sess, " EPRT\r\n");  }  if (tunable_pasv_enable)  {    vsf_cmdio_write_raw(p_sess, " EPSV\r\n");  }  vsf_cmdio_write_raw(p_sess, " MDTM\r\n");  if (tunable_pasv_enable)  {    vsf_cmdio_write_raw(p_sess, " PASV\r\n");  }  if (tunable_ssl_enable)  {    vsf_cmdio_write_raw(p_sess, " PBSZ\r\n");    vsf_cmdio_write_raw(p_sess, " PROT\r\n");  }  vsf_cmdio_write_raw(p_sess, " REST STREAM\r\n");  vsf_cmdio_write_raw(p_sess, " SIZE\r\n");  vsf_cmdio_write_raw(p_sess, " TVFS\r\n");  vsf_cmdio_write_raw(p_sess, " UTF8\r\n");  vsf_cmdio_write(p_sess, FTP_FEAT, "End");}

⌨️ 快捷键说明

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