资源简介
包括代码,说明文档,测试用例
代码片段和文件信息
//
// Copyright (C) 2000-2004 Enterprise Distributed Technologies Ltd
//
// www.enterprisedt.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not write to the Free Software
// Foundation Inc. 59 Temple Place Suite 330 Boston MA 02111-1307 USA
//
// Bug fixes suggestions and comments should posted on
// http://www.enterprisedt.com/forums/index.php
//
// Change Log:
//
// $Log: Demo.csv $
// Revision 1.2 2013/02/11 04:17:12 bruceb
// tweak text file
//
// Revision 1.1 2005/09/30 17:20:27 bruceb
// from demo
//
// Revision 1.4 2005/02/25 18:34:54 bruceb
// cleaned exception logging
//
// Revision 1.3 2004/11/06 22:45:11 bruceb
// remove msg collector
//
// Revision 1.2 2004/10/29 14:29:10 bruceb
// tidied
//
// Revision 1.1 2004/10/23 16:13:10 bruceb
// first cut
//
// Revision 1.2 2004/10/20 20:51:55 bruceb
// first release
//
using System;
using EnterpriseDT.Util.Debug;
using EnterpriseDT.Net.Ftp;
///
/// Simple test class for FTPClient
///
///
/// Bruce Blackshaw
///
///
/// Hans Andersen
///
///
/// $Revision: 1.2 $
///
public class Demo {
///
/// Test harness
///
public static void Main(string[] args)
{
// we want remote host user name and password
if (args.Length < 3) {
Usage();
System.Environment.Exit(1);
}
Logger log = Logger.GetLogger(typeof(Demo));
// assign args to make it clear
string host = args[0];
string user = args[1];
string password = args[2];
Logger.CurrentLevel = Level.ALL;
FTPClient ftp = null;
try {
// set up client
log.Info(“Connecting“);
ftp = new FTPClient(host);
// login
log.Info(“Logging in“);
ftp.Login(user password);
// set up passive ASCII transfers
log.Debug(“Setting up passive ASCII transfers“);
ftp.ConnectMode = FTPConnectMode.PASV;
ftp.TransferType = FTPTransferType.ASCII;
// get directory and print it to console
log.Debug(“Directory before put:“);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\bin\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\doc\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\doc\images\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\doc\manual\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\doc\manual\api\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\doc\manual\api\api\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\doc\manual\api\api\fti\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\doc\manual\api\api\html\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\doc\manual\api\api\icons\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\doc\manual\api\api\sc
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\doc\manual\api\api\st
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\doc\manual\api\api\st
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\doc\manual\api\fti\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\doc\manual\api\html\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\doc\manual\api\icons\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\doc\manual\api\sc
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\doc\manual\api\st
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\doc\manual\api\st
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\doc\manual\html\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\doc\manual\images\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\doc\manual\rfc\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\examples\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\examples\FTPClientCS\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\examples\FTPClientVB\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\examples\FTPConnectionCS\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\examples\FTPConnectionVB\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\examples\Tutorial\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\examples\Tutorial\images\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\lib\
目录 0 2013-02-11 15:37 edtftpnet-2.2.3\src\
............此处省略2899个文件信息
- 上一篇:sap入门经典
- 下一篇:一种基于RSSI的无线传感器网络定位算法的设计与实现
相关资源
- 二手车管理系统
- 考试系统程序包括客户端服务端sock
- Unity 1127 如何制作塔防游戏基于Unity
- socket网络编程,可以实现聊天系统,
- 一个很好的WCF 架构ERP 项目源码
- VisualStudio2010安装包
- 真正可用win10 x64位twain协议虚拟扫描仪
- ARM常用工具-ftp、烧写工具、串口工具
- 基于WiFi的室内定位
- smzy_YummyFTPPropojieb.dmg
- 简单的在线聊天室实现群聊和单聊,
- 深居浅出AutoCAD二次开发教程
- 药店管理系统
- e语言-58自动回复招聘方源码 websocke
- 高校教师工资绩效管理系统
- sheely.unitypackage
- 简单电子邮件客户端的设计与实现.
- .net core 2.1 signalr 点对点聊天
- 上位机数据采集、储存、实时显示
- 易语言使用LhSocket5Net创建Socket5服务器
- .NET 在线答题器含数据库
- 游戏服务端+模拟游戏客户端
- libwebsockets-master
- ftp客户端的设计与实现
- 北大青鸟ACCP5.0阶段S1结业考试题目,
- 餐厅管理系统源码+数据库文件
- FTP文件传输课程设计
- winsocket 通讯程序
- 机场天气实时展示系统
- CodeSmith生成MVC4项目工程模板V1.0.12.0
评论
共有 条评论