网络协议的实现与应用实训报告(15)

2020-12-24 18:37

FTP 服务器的安装和配置方法FTP 客户端的开发方法

源程序

using System;

using System.Collections.Generic; using http://www.77cn.com.cnponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text;

using System.Threading.Tasks; using System.IO; using http://www.77cn.com.cn;

using System.Windows.Forms;

namespace FTP_Client {

public partial class Form1 : Form {

private const int ftpport = 21; private string ftpUristring = null;

private NetworkCredential networkCredential; private string currentDir = "/"; public Form1() {

InitializeComponent();

IPAddress[] ips = Dns.GetHostAddresses(""); tbxServerIp.Text = ips[0].ToString(); tbxServerIp.SelectAll(); btnlogout.Enabled = false; lstbxFtpResources.Enabled = false; lstbxFtpState.Enabled = false; btnUpload.Enabled = false; btndownload.Enabled = false; btnDelete.Enabled = false; }

#region 键盘按下事件

private void tbxServerIp_KeyPress(object sender, KeyPressEventArgs e) {

// 输入用户名回车后,焦点直接转到密码文本框 if (e.KeyChar == (char)13) {


网络协议的实现与应用实训报告(15).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:电商平台对入驻经营者的审核要求或规范文件

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: