资源简介
包括代码,说明文档,测试用例

代码片段和文件信息
//
// 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的无线传感器网络定位算法的设计与实现
相关资源
- FTP课程设计(服务端+客户端)
- WPF USB 网络 串口 通信软件
- B/S 网上订餐系统
- 通信软件的具体实例──基于Socket的
- python实现的ftp自动上传、下载脚本
- 教室管理系统.rar
- 用Socket编程实现FTP
- 小鸡快跑游戏.
- websocket实现一对一聊天
-
分别适用于.NET fr
amework 2.0和4.0的E - 汽车租赁系统............................
- 德卡D8读写器关于读写感应卡的一些代
- tftp文件传输工具
- halcon 测量助手
- 代码客:G-TcpServer(IOCP) 1.0 正式版及
- 图片存储到数据库保存二进制文件并
- SOCKET 网络编程 计算机网络 作业 客户
- linux 网络实验 ftp程序
- 用Socket写的简易FTP服务器和客户端
- 基于C 的简易FTP客户端(带源码)
- 企业销售管理信息系统(全套)
- socket小工具(可方便建立TCP UDP的soc
- 串口操作类(justinio)
- socket客户端源码
- 基于Petri网的工作流(完整的原创源代
- 选择题自动考试系统
- 多线程实例:桌面智能弹球小游戏
- 基于CSocket的多人聊天室
- 用IdFTPServer写的一个FTPServer程序
- socket文件传输源码
评论
共有 条评论