-
FTP使用简介(协议).doc
ftp简介,协议说明,使用FTP协议FTP简介文件传输协议(FTP)作为网络共享文件的传输协议,在网络应用软件中具有广泛的应用。FTP的目标是提高文件的共享性和可靠高效地传送数据。FTP协议中使用两个Socket, 将命令与数据分开传送的方法提高效率。FTP 使用 2 个端口,一个数据端口和一个命令端口(也叫做控制端口)。命令端口一般是21 (命令端口)和数据端口一般20。控制Socket用来传送命令,数据Socket是用于传送数据。客户端每一个FTP 命令发送之后,FTP服务器都会返回一个字符串,其中包括一个响应代码和一些说明信息。返回码用于判断命令是否被成功执行了 FTP模式主动模式:客户端随机打开一个大于 1024 的端口向服务器的命令端口(21),发起连接,同时开放N 1 端口监听,并向服务器发出“port N 1”命令,由服务器从它自己的数据端口 (20) 主动连接到客户端指定的数据端口 (N 1)。FTP 的客户端只是告诉服务器自己的端口号,让服务器来连接客户端指定的端口。对于客户端的防火墙来说,这是从外部到内部的连接,可能会被阻塞 注:1. 数据传输通道是在有数据传输的行为才会建立连接,并不是一开始连接到FTP服务器就立刻建立的数据通道2. port 21接受来自客户端的主动连接,port 20则是FTP服务器主动连接到客户端被动模式客户端通过PASV命令获得服务器端IP地址和数据端口,然后向服务器端发起连接请求,从而建立数据连接。服务器端只是被动地监听在指定端口上的请求1. 客户端与服务器建立命令通道2. 客户端发起PASV的连接要求3. FTP服务器启动数据端口,并通知客户端连接4. 客户端随机取用大于1024的端口进行连接 注:被动模式FTP数据通道是由客户端向服务器端发起连接的 FTP命令及响应命令:FTP命令按照ASCII格式在控制连接上传输(命令可读),每个命令后跟回车换行符 ()USER username 向服务器传输用户名PASS password 向服务器传输密码CWD 跳转目录QUIT 从服务器上退出FTP登入 RETR filename 从远程主机获取文件STOR filename 向远程主机当前目录存储文件,如存在同名文件则覆盖MKD 在服务器上建立目录APPE 追加(包括创建)LIST 请求服务器返回远程主机当前目录下的所有文件列表NOOP 该命令不指定任何动作 , 只是要求服务器返回OK响应 响应:命令发送后,服务器会发送相应的响应给客户端说明情况。响应是一个3位数字(xyz),后面跟一些文本信息供直接查看响应的第一位数字(x):1:预备状态2:完成状态3:中间状态4:暂时拒绝状态5:永久拒绝状态响应第二位数字(y):0: 语法-这种响应指出了语法错误。给出的命令不存在、没有被实现、或多余1: 信息-对于请求信息的响应,比如对状态或帮助的请求2: 连接-关于控制连接和数据连接的响应3: 身份验证和帐户-对登陆过程和帐户处理的响应4: 目前还未使用5: 文件系统-请求传输时服务器文件系统的状态或其他文件系统动作状态
- 2021-05-07下载
- 积分:1
-
I.M.Smith——《有限元方法编程》书及程序
为美国经典书记《有限元方法编程》,内涵书中自带程序!
- 2021-05-06下载
- 积分:1
-
12864实现菜单( 可以实现多级菜单,容易学习)
12864 实现菜单在,单片机控制中作为人机交换中起了很大的作用,就像叫一个人用高科技的设备,但是复杂,但是做成菜单一样玩起来和手机没什么区别简单。很好用希望同志 笑纳咯根12864实现菜单( 可以实现多级菜单,容易学习)一模一样
- 2020-12-11下载
- 积分:1
-
人工智能(百度人脸识别)简单案例
人工智能(百度人脸识别)简单案例
- 2020-12-12下载
- 积分:1
-
contourlet轮廓波变换去噪的算法框架介绍
contourlet为近几年由小波变换衍生而来的新技术,成为第三代小波技术。此文章,简明扼要介绍了以轮廓波变换为核心的去噪算法,即先将图像经过轮廓变换分解,再由此得到相关系数估算阈值,通过阈值进行去噪与特征保留。轮廓波相对小波对图像奇异点有更好的逼近检测性。
- 2020-12-09下载
- 积分:1
-
matlab解logistic模型
已知x=0:1:12y=[43.65 109.86 187.21 312.67 496.58 707.65 960.25 1238.75 1560.00 1824.29 2199.00 2438.89 2737.71]y=L/(1+a*exp(-k*x))利用线性回归模型所得到的a和k的估计值和L=3000作为Logistic模型的拟合初值,对Logistic模型做非线性回归。
- 2021-05-06下载
- 积分:1
-
Altium PCB封装库
Altium PCB元件封装库,包括DO-214AC/SMA、DO-214AA/SMB、DO-214AB/SMC、贴片铝电解电容所有型号、TO-252、T0-263、TO-263-3、TO-263-5、TO-263-7、贴片屏蔽电感、USB,和常用贴片直插元件封装。
- 2020-05-29下载
- 积分:1
-
三相桥式全控整流电路matlab/simulink
通过对三相全控桥式整流电路的分析,应用 Matlab 的Simulink 仿真工具对三相全控桥式整流电路进行建模,仿真分析研究了其阻性及感性负载时的工作情况。达到对三相桥式整流电路的仿真的目的。
- 2020-11-29下载
- 积分:1
-
java数独计算器升级版(包含出题器)
【实例简介】第一部分:纯java实现的数独计算器,使用回溯法递归求解。同时实现了唯一候选值法、隐性唯一候选值法、区块删减法等最优求解法。
第二部分:java数独出题器,运用回溯算法实现自定义出题,绝对的随机出题,可以自定义难度,所出题目有唯一解。后续将实现更多删减法出题,使得所出题型更加科学。
- 2021-11-16 00:32:04下载
- 积分:1
-
verilog_IEEE官方标准手册-2005_IEEE_P1364
The Verilog® Hardware Description Language (Verilog HDL) became an IEEE standard in 1995 as IEEEStd 1364-1995. It was designed to be simple, intuitive, and effective at multiple levels of abstraction in astandard textual format for a variety of design tools, including verification simulation, timiThe clear directive from the users for these three task forces was to start by solving some of the followingproblemsConsolidate existing IeeE Std 1364-1995Verilog generate statementMulti-dimensional arraysEnhanced Verilog file i/oRe-entrant tasksStandardize Verilog configurationsEnhance timing representationEnhance the vpi routinesAchievementsOver a period of four years the 1364 Verilog Standards Group(vsg) has produced five drafts of the lrmThe three task forces went through the EEe Std 1364-1995 lRM very thoroughly and in the process of consolidating the existing Lrm have been able to provide nearly three hundred clarifications and errata for theBehavioral, ASIC, and PLI sections. In addition, the vsg has also been able to agree on all the enhance-ments that were requested (including the ones stated above)Three new sections have been added. Clause 13, "Configuring the contents of a design, deals with configuration management and has been added to facilitate both the sharing of verilog designs between designersand/or design groups and the repeatability of the exact contents of a given simulation session Clause 15Timing checks, "has been broken out of Clause 17, "System tasks and functions, "and details more fullhow timing checks are used in specify blocks. Clause 16, "Backannotation using the Standard Delay Format(SDF), addresses using back annotation(IEEE Std 1497-1999)within IEEE Std 1364-2001Extreme care has been taken to enhance the vpi routines to handle all the enhancements in the behavioraland other areas of the lrm. minimum work has been done on the pli routines and most of the work hasbeen concentrated on the vpi routines. Some of the enhancements in the vpi are the save and restart simu-lation control, work area access, error handling, assign/deassign and support for array of instances, generateand file 1/0Work on this standard would not have been possible without funding from the cas society of the ieee andOpen verilog InternationalThe IEEE Std 1364-2001 Verilog standards Group organizationMany individuals from many different organizations participated directly or indirectly in the standardizationprocess. The main body of the Ieee Std 1364-2001 working group is located in the United States, with asubgroup in Japan (EIAJ/1364HDL)The members of the IEEE Std 1364-2001 working group had voting privileges and all motions had to beapproved by this group to be implemented the three task forces focused on their specific areas and theirrecommendations were eventually voted on by the Ieee Std 1364-2001 working group
- 2020-12-11下载
- 积分:1