freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于socket的多客戶端網(wǎng)絡(luò)聊天系統(tǒng)的開發(fā)與設(shè)計-53頁-全文預(yù)覽

2024-12-10 15:04 上一頁面

下一頁面
  

【正文】 x_ID() { return boBox_ID。 } /** * 獲得注冊按鈕 * return 注冊按鈕 */ public JButton getButton_Add() { return button_Add。 } catch (IOException e) { //()。 基于 Socket的 簡易 網(wǎng)絡(luò)聊天系統(tǒng)的開發(fā)與設(shè)計 30 } (new DefaultComboBoxModel(idReverse))。 String row = null。 try { fileReader = new FileReader(file)。 } catch (IOException e1) { //()。 } catch (IOException e1) { //()。 bufferedWriter = new BufferedWriter(fileWriter)。 while((row = ()) != null){ //id 重復(fù)時不加 if((id)){ continue。 StringBuffer stringBuffer = new StringBuffer()。 FileWriter fileWriter = null。 } /** * 生成集成了登錄界面與網(wǎng)絡(luò)設(shè)置界面的總窗體 */ private void makeAll(){ ((),)。 基于 Socket的 簡易 網(wǎng)絡(luò)聊天系統(tǒng)的開發(fā)與設(shè)計 26 (panel0)。 (new Dimension(68,23))。 (label1)。 JLabel label1 = new JLabel(服務(wù)器地址 :)。 莆田 學(xué)院 2020 屆本科畢業(yè)論文 25 JPanel panel0 = new JPanel()。 Border border2 = ()。 ((),)。 return p。 ((new Dimension(10,1)))。 (listener)。 (listener)。 _Login_Button_Listener listener = new _Login_Button_Listener(user_add_JDialog, this)。 (panel_Password)。 (passwordField_Password)。 (new Dimension(175,23))。 JPanel panel_Password = new JPanel()。 (label_ID)。 莆田 學(xué)院 2020 屆本科畢業(yè)論文 21 // (border3)。 Border border = (border1, border3)。 //((54, , ))。 return l。 (null)。 ()。 /** * 構(gòu)造一個登錄窗體 */ public _Login_JFrame() { super( 用戶登錄 )。 private ObjectOutputStream objectOutputStream = null。 private File file = new File(id/)。 private JButton button_NetOption = new JButton(設(shè) 置 )。 /** * 這是一個 登錄窗體類,它繼承自 * author Devon * */ public class _Login_JFrame extends JFrame{ private JComboBox boBox_ID = new JComboBox()。 import 。 莆田 學(xué)院 2020 屆本科畢業(yè)論文 17 import 。 import 。 import 。 import 。 import 。 import 。 import 。 客戶端功能劃分為以下模塊: 客 戶 端客戶端的連接與斷開更新用戶信息查看同學(xué)信息聊天內(nèi)容的保存打開聊天內(nèi)容的刪除發(fā)送消息 圖 8 客戶端功能 客戶端的主要功能包括:客戶端的連接與斷開、更新用戶信息、發(fā)送消息、查看同學(xué)信莆田 學(xué)院 2020 屆本科畢業(yè)論文 15 息、聊天內(nèi)容的打開保存刪除 登錄模塊 流程圖如下 開 始填 寫 用 戶信 息驗 證 用 戶 信 息驗 證 用 戶結(jié) 束接 收 離 線信 息成 功失 敗發(fā) 送 登 陸失 敗 信 息 圖 9 登錄流程圖 輸入: 管理員賬號或者用戶帳號和對應(yīng)的密碼。因此需要實現(xiàn)客戶端與服務(wù)器端的功能。 3 系統(tǒng)總體設(shè)計 數(shù)據(jù)庫設(shè)計 本系統(tǒng)中的主要實體和其屬性有: ( ID,用戶名,密碼,年齡,性別 ,住址,注冊時間 ) ER 模型如圖所示。 客戶端 要 完成的工作包括: 1.與服務(wù)器 端建立 發(fā)送信息 的 通信通道 。擁有一款針對學(xué)校內(nèi)部的 簡易 聊天工具聊天軟件,不僅可以方便同學(xué)們在網(wǎng)絡(luò)故障時的交流,同時可以增加溝通。 僅需開發(fā)軟件,因此經(jīng)濟上是可行的。 服務(wù)器端 就是一個管理信息發(fā)送的控制中心;客戶端要想進行信息的傳遞,首先必須先將信息發(fā)送至服務(wù)器端,然后服務(wù)器再根據(jù)要求將信息發(fā)送至所要發(fā)送的地點。會向 A 反饋一個數(shù)據(jù)段,向 A說明已收到請求;且需要選擇數(shù)據(jù)段來回應(yīng)。 關(guān)閉:通信結(jié)束時,再將所建的虛擬連接拆除。 開發(fā)原理: 服務(wù)器,使用 特定類 監(jiān)聽指定的端口,端口 是由 1024~ 65535 之間的端口組成的 , 當客戶端提出連接請求時,會對其進行處理,產(chǎn)生會話;在會話結(jié)束后,關(guān)閉連接。同時還要避免沒有被其它程序占用。 可以為各式各樣的應(yīng)用提供服務(wù)。一般不適合工作在局域網(wǎng)中。如面向連接的傳輸控制協(xié)議( TCP)、面向無連基于 Socket的 簡易 網(wǎng)絡(luò)聊天系統(tǒng)的開發(fā)與設(shè)計 8 接用戶數(shù)據(jù)報協(xié)議( UDP)。是一組以 TCP 與 IP 為基礎(chǔ)的相關(guān)協(xié)議的集合,該協(xié)議不是完全符合 OSI 的七層參考模型,而是采用的四層結(jié)構(gòu),網(wǎng)絡(luò)接口層、網(wǎng)際層、傳輸層、應(yīng)用層。 } image=getImage(imgur)。 } 或 URL imgur=null。 getImage(new URL(字符串 )) 其使用格式可有兩種: String url = “結(jié)點 URL” 。同時,處理這些資源。自動轉(zhuǎn)換就是源代碼中不用任何特殊說明,系統(tǒng)會自動進行轉(zhuǎn)換。 在傳統(tǒng)的語言中內(nèi)存是不能被自動分配和釋放的。 Java更好的封裝了變量,使的不會造成系統(tǒng)的崩潰。 在操作符、變量聲明、參數(shù)傳遞、流控制等方面; Java 使用了同傳統(tǒng)語言相同的方法 ,使得程序員可以非常方便地進行編程的開發(fā)。 Java中豐富的類庫,它們提供了多線程、網(wǎng)絡(luò)化、面向?qū)ο笙到y(tǒng)的需要。在程序運行過程中它允許實時的裝入所需要的類,使它適合于 不斷發(fā)展的環(huán)境。多線程的最大的好處是更好的實時的控制性能和交互性能 。使得 Java程序 客戶端及服務(wù)器端 可以被不同的 系統(tǒng) 在 相同的 網(wǎng)絡(luò) 環(huán)境中 使用,非常的方便。在編譯時, Java可以幫助程序員減少程序的錯誤,對沒有被處理的錯誤加以提示,以防 止系統(tǒng)的崩潰。 TCP/IP協(xié)議的使用是通過它所包含的類庫,用戶可以憑借統(tǒng)一資源定位符 打開并訪問網(wǎng)絡(luò)上的對象 。面向?qū)ο笫怯懈鞣N對象構(gòu)成的,一個對象完成一些特定的功能,各個對象用接口的方式連接。 3) Java提供了很多的類庫。 JAVA 的優(yōu)勢 .1 JAVA 的主要特點 Java 語言具有簡單性、面向?qū)ο筮^程、分布式、解釋執(zhí)行、健壯性、 安全、體系結(jié)構(gòu)中立、可移植、性能高、多線程以及動態(tài)性的特點。加速了應(yīng)用程序的網(wǎng)絡(luò)化、小型化的趨勢。在 Java出現(xiàn)之前;信息的交換主要是是靠存儲的共享和不同宿主機上運行的程序交換進行的,交換程序 雙方共同維護消息的語義。無論用戶使用何種類型的機器,那種操作系統(tǒng)。在設(shè)計窗口時也采用相似的技術(shù)。 1991 年 Sun 公司成立了 Java 語 言開發(fā)小組。各種類型的平臺,不同的背景和各種類型的機器都可以使用這種語言。 也是網(wǎng)絡(luò)在現(xiàn)實中最實用的例子 。 關(guān)鍵詞: 局域網(wǎng) 聊天 套接字 Java Eclipse 簡易 聊天工具 基于 Socket的 簡易 網(wǎng)絡(luò)聊天系統(tǒng)的開發(fā)與設(shè)計 2 Development and design of multiple client work chat system based on Socket Student:zhuang wei jie(Faclty Asviser:lin jian bing) Abstract: With the development of work technology in the campus of popularization, chat tools has bee an indispensable tool in exchange, more and more students of all ages. There are a lot of good chat tools on the market, with the most extensive and most accepted with Tencent , MSN, Renren and so on, but the client chat tool is designed according to the characteristics of internal school which occupies a space for one person in the industry in the Inter chat. The development of this system is mainly two aspects of server and client. The server through socket to establish a connection with the server, the server will accept the request of the client, and according to the requirements of the client message forwarding, refresh user information. The latter through a connection with the server, carries on munication between P2P client. Which uses the principle of LAN munication mechanism, establish multi thread mechanism by implementing the Runnable interface. Computer work programming technology is used in the development, such as C\/S model, multithreading technology, work munication etc.. In the work munication, reading messages and send messages, is to achieve the exchange using Stream, which introduced the exchange to achieve a construction of information, including the basic methods of software engineering. Through these analyses, the client chat tool system using Java language, the system is based on Eclipse platform. First establishes the system application prototype, then revised and improved, until the plete release sy
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1