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

正文內(nèi)容

java網(wǎng)絡(luò)聊天室課程設(shè)計說明書(含源程序)-閱讀頁

2025-01-31 05:34本頁面
  

【正文】 j == startItem) { // 啟動服務(wù)端 startService()。 if (j == ) { stopService()。 (true)。 if (j == ) { stopService()。 } } else if (obj == helpItem) { // 菜單欄中的幫助 // 調(diào)出幫助對話框 Help helpDialog = new Help(this)。 } else if (obj == sysMessage || obj == sysMessageButton) { // 發(fā)送系統(tǒng)消息 sendSystemMessage()。 (服務(wù)端已經(jīng)啟動,在 + port + 端口偵聽...\n)。 (false)。 (false)。 (true)。 } catch (Exception e) { ()。 listenThread = new ServerListen(serverSocket, bobox, messageShow,showStatus, userLinkList)。 } /** * 此函數(shù)用于關(guān)閉服務(wù)器,關(guān)閉服務(wù)器后給所有在線用戶發(fā)送服務(wù)器關(guān)閉的信息,服 * 務(wù)器關(guān)閉后,所有的input,output輸入輸出流都會關(guān)閉,并且socket也會關(guān)閉。 = true。 int count = ()。 while (i count) { Node node = (i)。 ()。 i++。 (false)。 (true)。 (true)。 (服務(wù)端已經(jīng)關(guān)閉\n)。 (所有人)。 } }2. 服務(wù)端的偵聽類。public void run(){ while(!isStop amp。 !()){ try{ client = new Node()。 = new ObjectOutputStream(())。 = new ObjectInputStream(())。 //顯示提示信息 ()。 SimpleDateFormat sdf = new SimpleDateFormat(yyyyMMdd HH:mm:ss)。 (str + \n + 用戶 + + 上線 + \n)。 recvThread = new ServerReceive(textarea,textfield, bobox,client,userLinkList)。 } catch(Exception e){ } } }3. 。除此之外還對用戶下線時作必要的處理,提示用戶下線,以及顯示在線人數(shù)。 while(!isStop amp。 !()){ try{ String type = (String)()。 String status = (String)()。 String message = (String)()。 if((悄悄話)){ msg = [悄悄話] + msg。 String str = (new Date())。 if((所有人)){ sendToAll(msg)。 ()。 ()。 } Node node = (toSomebody)。 ()。 ()。 (node)。 int count = ()。 (所有人)。 while(i count){ node = (i)。 continue。 i++。 SimpleDateFormat sdf = new SimpleDateFormat(yyyyMMdd HH:mm:ss)。 (str + \n + msg)。 sendToAll(msg)。//重新發(fā)送用戶列表,刷新 break。 } } }18
點(diǎn)擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1