Click here to load reader
Upload
judah
View
36
Download
0
Embed Size (px)
DESCRIPTION
Network Programming Final Project – FTP Client. 指導教授 : 潘仁義 組別 : 第 4 組 組員 : 501435001 楊興忠 501435005 蕭俊宇 2014/01/16. Outline. 功能要求 開發工具 作業系統 程式架構 功能測試 背景知識. 功能要求. 檔案下載 ( 從 server 端下載一個檔案 ). 開發工具. C. 作業系統. Ubuntu 10.4. 程式架構 (I). 程式架構 (2). - Server - ftps.c - PowerPoint PPT Presentation
Citation preview
Network Programming Final Project
: :4: 501435001 501435005 2014/01/16
Network ProgrammingFinal Project FTP ClientOutline
(server )
C
Ubuntu 10.4
(I)
(2)- Server - ftps.cfread fp buffer write bufffer new_fd
- Client - ftpc.c while fread fp buffer fwrite buffer fp filename
- Server - ftps.c( server)./ftps ss.mp3
- Client - ftpc.c( client )./ftpc 192.168.0.192 ss.mp3
- Client - ftpc.c( client )client ss.mp3
FTP protocol(passive mode/active mode)C programing languageFTP RFC 959
FTP - File Transfer ProtocolFile Transfer Protocol, FTP(TCP/IP),RFC 959Port number: (21),(20)
FTP File Transfer ProtocolFTP8-MIMEUnicode
ASCIIBinary
FTP20212021ftpFTPFTPFTPanonymousFTP
13 binary :
FTP Standard (Active Mode, ) .
Passive (Passive Mode, ) .
ActivePassiveFTP
FTP - help ftp hostname ftp hostname open hostname hostnameuser login namehelp or ?helpbye or quiteFTP - (host )cd ..cd dirname dirnamels or dirpwd (local )lcd ..lcd dirname dirnameldirFTP - get fname host fname localmget fnames host fnames localput fname local fname hostmput fnames local fnames hostascii ascii binary binary