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

正文內(nèi)容

java網(wǎng)絡(luò)聊天室課程設(shè)計(jì)報(bào)告(內(nèi)附有代碼)(完整版)

  

【正文】 Stream(())。 /** * 傳到客戶端 打印流 */ private PrintStream toClient。 } private void log(String string) { // TODO 自動(dòng)生成方法存根 String newta = ()。 // } protected void saveLog() { // TODO 自動(dòng)生成方法存根 try { FileOutputStream fileoutput = new FileOutputStream(, true)。 // ============主標(biāo)簽面板 ======================== tpServer = new JTabbedPane()。 list = new JList()。 (50, 410, 160, 25)。 spUser = new JScrollPane()。 btnKick = new JButton(踢人 (K))。 taMessage = new TextArea(20, 20)。 (pnlServerInfo)。 (txtIP)。 (txtNumber)。 lblLog = new JLabel([服務(wù)器日志 ])。 txtIP = new JTextField(10)。 (false)。 lblStatus = new JLabel(當(dāng)前狀態(tài) :)。// 在屏幕居中顯示 Dimension fra = ()。 JButton btnSend, btnKick。 public TextArea taLog。 } } catch (IOException e) { (不能監(jiān)聽(tīng) )。 } catch (IOException e) { fail(e, 不能啟動(dòng)服務(wù)! )。 private static Vector userOnline = new Vector(1, 1)。比如對(duì)于登陸信息,消息的頭部就是“ PEOPLO” ,而對(duì)于私聊中的消息,頭部就是“ SEC” ,其他的同理都添加了頭部??赏ㄟ^(guò)閃動(dòng)托盤(pán)圖標(biāo)和播放不同的音樂(lè)提示信息到來(lái)及好友上線等信息。因此出現(xiàn)了QQ等聊天工具,然而QQ等聊天工具雖然方便、實(shí)用,但是,娛樂(lè)功能太多,有很多吸引人的娛樂(lè)功能,從一定程度上來(lái)說(shuō),是一種娛樂(lè)工具,不能作為用于即時(shí)通訊、文件共享的專(zhuān)用工具。目前,用于實(shí)現(xiàn)單一的即時(shí)通訊、文件共享的軟件實(shí)在太少,而且,它們中大部分都是絕對(duì)的 C/S 模式,對(duì)遠(yuǎn)程服務(wù)器有非常大的依賴(lài)性,沒(méi)有徹底實(shí)現(xiàn)點(diǎn)對(duì)點(diǎn)的交流??赏ㄟ^(guò)建立消息鏈表來(lái)保存用戶接收的各種消息。當(dāng)然,對(duì)于客戶端來(lái)說(shuō),這些都是透明的,用戶的操作并沒(méi)有受到任何影響。 private static Vector v = new Vector(1, 1)。 } (已啟動(dòng) ...)。 } } /** * 啟動(dòng)服務(wù)器 */ public static void main(String args[]) { new AppServer()。 JTabbedPane tpServer。 public String ti = 。 if ( ) { = 。 txtStatus = new JTextField(10)。 lblServerName = new JLabel(服務(wù)器名稱(chēng) :)。 (false)。 taLog = new TextArea(20, 50)。 (lblMax)。 (lblPort)。 (lblLog)。 lblNotice = new JLabel(通知: )。 (new ActionListener() { public void actionPerformed(ActionEvent arg0) { tiRen()。 (R_ALWAYS)。 (210, 410, 80, 25)。 (new String[] { })。 (服務(wù)器管理 , pnlServer)。 String temp = ()。 newta += (\n+string)。 /** * 注冊(cè)用戶列表 */ private static Vector vList = new Vector()。 // 服務(wù)器寫(xiě)到客戶 toClient = new PrintStream(())。 } if (().getName().equals(Register_Customer)) { // serverRegiste()。 } catch (IOException e) { (e)。 i ()。 a++) { // chenmin String _custName = ((Customer) userOnline .elementAt(a)).custName。 (登錄成功 )。 } ()。 String sql = select * from yonghu where custName=39。 (pass:[+pass+])。 return。 return。 freshServerUserList()。 j ()。 // 是否重名判斷標(biāo)志 Register_Customer clientMessage = (Register_Customer) obj。 flag = 1。 (vList)。 } catch (IOException e) { (e)。 while (()) { reg = true。 } ()。,39。,39。 ()。 ObjectOutputStream outputstream = new ObjectOutputStream(Client .getOutputStream())。 // 將聊天信息的序列化對(duì)象填加到保存聊天信息的矢量中 ((Chat) cObj)。 freshServerUserList()。 } ()。 Date date = new Date()。 } String text = 。,39。 在此次字符統(tǒng)計(jì)程序開(kāi)發(fā)過(guò)程中,有很多東西值得我們思考并總結(jié)。 ( 6)最后修飾:程序可以正確運(yùn)行之后,再不影響程序功能的情況下,運(yùn)用各種輔助性符號(hào),使界面更加美觀漂亮,操作更人性化.增強(qiáng)程序的新意與可行性。幫助我們熟悉了更多 Visual C++語(yǔ)言的功能,提高了我們的動(dòng)手能力,學(xué)到了許多解決實(shí)際問(wèn)題的寶貴經(jīng)驗(yàn).同時(shí)也挖掘出了我們潛在的能力,使我們對(duì)自己更有自信,對(duì)編程也更有興趣。思考要實(shí)現(xiàn)整個(gè)程序大體需要的幾個(gè)模塊和其中用到的 Visual C++語(yǔ)言基本操作符、語(yǔ)句等。)。 text += 。 newlog += ([ + () + ])。 j ()。 Customer _cus = null。 } /** * 用戶退出處理 */ SuppressWarnings(deprecation) public void serverExit() { Exit exit = new Exit()。 ()。 (e)。)。,39。 if (reg) { (注冊(cè)名重復(fù) ,請(qǐng)另外選擇 )。 int numberOfColumns = ()。 // 是否重名判斷標(biāo)志 Register_Customer clientMessage = (Register_Customer) obj。 Date t = new Date()。 } else if ((所有人 )) { (禁止使用此注冊(cè)名 ,請(qǐng)另外選擇 )。 if (() != 0)// 判斷是否是第一個(gè)注冊(cè)用戶 { ObjectInputStream objInput = new ObjectInputStream( new FileInputStream(fList))。 userList[j] = 。 } else { (該用戶已登錄 )。 =head。 for (int a = 0。 (logined:)。 ResultSet rs = (sql)。 ()。 log(用戶 + + 登錄成功, + 登錄時(shí)間 : + () + \n)。 break。 if (()) { find = 1。 // 讀文件 FileInputStream file3 = new FileInputStream()。 } if (().getName().equals(Message)) {
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1