【正文】
technology applied in the field of modem science and technology gets deepening and the demand for its service gets rising due to the highspeed development of modem information technology, so that a good server platform is a necessary to meet the growing demand of users for the work service. And study the relevant work munication technology and realize the software platform design bee a hot topic of work development. Under this background, the article is to study and implement the FTP service technology. Firstly, The article briefly describes the development of the puter work, then introduce five layers of the TCP/IP protocol architecture and the function of each layer. On this basis, the article studys and analyzes the basic working principle of the TCP/IP protocol and the FTP protocol. layer. According to the design requirements and function to be realized on the server, the overall framework model is confirmed. The FTP file transmission server system is piled in VC software environment to implement the system by making use of the modular software thought to design, based on the C/S mode. The article analyzes the main modules including client connection module, upload module and download module and provide the relevant code. Finally, through testing the FTP server system, it can meet the requirements of providing file transfer service. Practice shows that research and implement the FTP server technology has practical significance to meet the demand of work services and promote the development of work technology. Key words: VC++, FTP, Client 目 錄 1 緒 論 .................................................................................................................................... 1 課題背景 ..................................................................................................................... 1 國內(nèi)外研究現(xiàn)狀 ......................................................................................................... 1 本課題研究的意義和方法 ......................................................................................... 2 論文內(nèi)容結(jié)構(gòu)安排 ..................................................................................................... 2 2 計(jì)算機(jī)網(wǎng)絡(luò)與 TCP/ I P 協(xié)議 .............................................................................................. 3 計(jì)算機(jī)網(wǎng)絡(luò) ................................................................................................................. 3 計(jì)算機(jī)網(wǎng)絡(luò)的概念 .......................................................................................... 3 計(jì)算機(jī)網(wǎng)絡(luò)發(fā)展過程 ...................................................................................... 3 計(jì)算機(jī)網(wǎng)絡(luò)性能指標(biāo) ...................................................................................... 4 計(jì)算機(jī)網(wǎng)絡(luò)的體系 結(jié)構(gòu) .................................................................................. 5 TCP/ IP 協(xié)議 .............................................................................................................. 6 TCP/ I P 各層功能 .......................................................................................... 6 TCP 協(xié)議分析 ................................................................................................... 8 3 FTP 協(xié)議分析 ....................................................................................................................... 11 FTP 工作原理 ........................................................................................................... 11 FTP 工作模式 ............................................................................................................ 12 FTP 傳輸模式 ........................................................................................................... 14 ASCII 傳輸方式 .............................................................................................. 14 二進(jìn)制傳輸方式 ............................................................................................ 14 4 FTP 客戶端的設(shè)計(jì) ............................................................................................................... 15 設(shè)計(jì)目的及工具選擇 ................................................................................................ 15 設(shè)計(jì)目的 ......................................................................................................... 15 設(shè)計(jì)工具 ......................................................................................................... 15 客戶端主要模塊設(shè)計(jì) ................................................................................................ 15 客戶端連接模塊 ............................................................................................. 15 上傳模塊 ......................................................................................................... 18 下載模塊 ......................................................................................................... 20 5 系統(tǒng)測(cè)試 .............................................................................................................................. 23 運(yùn)行方法 .................................................................................................................... 23 運(yùn)行結(jié)果 .................................................................................................................... 23 結(jié) 論 ...................................................................................................................................... 27 參 考 文 獻(xiàn) ...................................................................................................................... 28 致 謝 ...................................................................................................................................... 29 附 錄 核心代碼 .................................................................................................................. 30 1 1 緒 論 課題背景 目前, FTP 服務(wù)在網(wǎng)絡(luò)上已經(jīng)是一種廣泛使用的服務(wù)了,它是建立在 FTP 協(xié)議上的用于網(wǎng)絡(luò)環(huán)境下進(jìn)行文件傳輸?shù)囊环N文件傳輸系統(tǒng),幾乎可