基于socket的java網(wǎng)絡通信及簡單實現(xiàn).doc
約24頁DOC格式手機打開展開
基于socket的java網(wǎng)絡通信及簡單實現(xiàn),全文24頁,完整設計分析摘要:java語言作為一門現(xiàn)在網(wǎng)絡編程的主要語言,它提供了強大和獨特的網(wǎng)絡通信支持機制和能力, java api網(wǎng)絡類包中的socket類是網(wǎng)絡上運行的兩個程序間雙向通信的一端,它既可以接受請求,也可以發(fā)送請求,利用它可以較為方便的編寫網(wǎng)絡上數(shù)據(jù)的傳遞。本文簡述了java語言的特點,java 網(wǎng)...


內容介紹
此文檔由會員 hakater 發(fā)布
全文24頁,完整設計分析
摘要:Java語言作為一門現(xiàn)在網(wǎng)絡編程的主要語言,它提供了強大和獨特的網(wǎng)絡通信支持機制和能力, Java API網(wǎng)絡類包中的Socket類是網(wǎng)絡上運行的兩個程序間雙向通信的一端,它既可以接受請求,也可以發(fā)送請求,利用它可以較為方便的編寫網(wǎng)絡上數(shù)據(jù)的傳遞。本文簡述了Java語言的特點,Java 網(wǎng)絡通信機制,介紹了面向客戶機/服務器方式的Socket通信機制,闡述了Java語言中基于TCP/IP連接基礎的Socket編程的步驟和方法,并通過實現(xiàn)一個簡單的客戶機/服務器程序來說明Java中基于Socket的網(wǎng)絡編程。
關鍵詞:Java,網(wǎng)絡,Socket,通信;
SOCKET-Based Network Programing with JAVA
Abstract: As a mainly language of network programing at preson ,java provides strong and special network communication mechanicsm . The Socket in the java API is a port between two programs of network,it is not only accepts the requests,but also sends requests. we can send data in network conveniencely with it. The article introduces the pecularity of the java language simply and the Socket communication mechanicsm.The author also presents the step and method of Socket programming which is based on TCP cvonnection with JAVA language.In orderto explain the Socket based network programming with java,the authors implement client/server promgram has beenimplemented.
Key words: Java,Network,Socket,Communication;
論文目錄
一 引言 ………………………………………………… 4
二 Java API中網(wǎng)絡通信機制及類包簡介:……… 4
(一) Java網(wǎng)絡通信機制………………………………6
(二) Java API網(wǎng)絡類包簡介………………………… 7
三 面向客戶/服務器方式的Socket通信機制 ……… 7
(一) 建立Socket的基本信息……………………………7
(二) Socket的通信方式………………………………… 7
1 服務器工作流程……………………………… 8
2 客戶機工作流程 ………………………………8
四 基于Socket的Java程序開發(fā) …………………… 9
(一) 功能介紹……………………………………… 10
(二) 創(chuàng)建服務器端程序……………………………… 11
(三) 創(chuàng)建客戶端程序………………………………… 17
(四) 運行程序……………………………………… 17
五 結束語 ……………………………………………… 18
六 參考文獻………………………………………………18
摘要:Java語言作為一門現(xiàn)在網(wǎng)絡編程的主要語言,它提供了強大和獨特的網(wǎng)絡通信支持機制和能力, Java API網(wǎng)絡類包中的Socket類是網(wǎng)絡上運行的兩個程序間雙向通信的一端,它既可以接受請求,也可以發(fā)送請求,利用它可以較為方便的編寫網(wǎng)絡上數(shù)據(jù)的傳遞。本文簡述了Java語言的特點,Java 網(wǎng)絡通信機制,介紹了面向客戶機/服務器方式的Socket通信機制,闡述了Java語言中基于TCP/IP連接基礎的Socket編程的步驟和方法,并通過實現(xiàn)一個簡單的客戶機/服務器程序來說明Java中基于Socket的網(wǎng)絡編程。
關鍵詞:Java,網(wǎng)絡,Socket,通信;
SOCKET-Based Network Programing with JAVA
Abstract: As a mainly language of network programing at preson ,java provides strong and special network communication mechanicsm . The Socket in the java API is a port between two programs of network,it is not only accepts the requests,but also sends requests. we can send data in network conveniencely with it. The article introduces the pecularity of the java language simply and the Socket communication mechanicsm.The author also presents the step and method of Socket programming which is based on TCP cvonnection with JAVA language.In orderto explain the Socket based network programming with java,the authors implement client/server promgram has beenimplemented.
Key words: Java,Network,Socket,Communication;
論文目錄
一 引言 ………………………………………………… 4
二 Java API中網(wǎng)絡通信機制及類包簡介:……… 4
(一) Java網(wǎng)絡通信機制………………………………6
(二) Java API網(wǎng)絡類包簡介………………………… 7
三 面向客戶/服務器方式的Socket通信機制 ……… 7
(一) 建立Socket的基本信息……………………………7
(二) Socket的通信方式………………………………… 7
1 服務器工作流程……………………………… 8
2 客戶機工作流程 ………………………………8
四 基于Socket的Java程序開發(fā) …………………… 9
(一) 功能介紹……………………………………… 10
(二) 創(chuàng)建服務器端程序……………………………… 11
(三) 創(chuàng)建客戶端程序………………………………… 17
(四) 運行程序……………………………………… 17
五 結束語 ……………………………………………… 18
六 參考文獻………………………………………………18
TA們正在看...
- db31-160-2005盒飯衛(wèi)生和營養(yǎng)要求.doc
- db31-359-2006足浴服務衛(wèi)生要求.doc
- db31405-2012上海市集中空調通風系統(tǒng)衛(wèi)生管理規(guī)范.doc
- db33t1009-2001圓林綠化技術規(guī)程.doc
- db331055-2008環(huán)境照明工程技術規(guī)范.doc
- db33217.1-2007桑蠶種第1部分桑蠶種質量.doc
- db33250.1-2006無公害臍橙第1部分苗木.doc
- db33250.4-2006無公害臍橙第4部分質量安全要求.doc
- db33257.3-2005徑山茶第3部分質量安全要求.doc
- db33261.4-2005筍竹兩用毛竹林第4部分筍質量安全要...doc