Coder Social home page Coder Social logo

chatroom's Introduction

Chatroom(聊天室)

此程式實做server端和client端聊天室的介面,當server和Client程式開始執行,便會使用Java socket進行連接,以進行資料的傳輸,而且server端有multithread的功能,以支援多個client端進行聊天。 image

功能

Server

  • 利用HashSet資料結構管理client連線
  • 顯示總線上人數
    • 當新的client加入時即時更新
  • 廣播訊息
    • 在所有的client的顯示區顯示廣播內容
  • 剔除client
    • Client被踢除後自動關閉視窗,並且server通知所有其餘clients

Client

  • 可更改暱稱 (預設:ClientID)
    • 更改後,及時更改server端的client暱稱清單
    • 更改後,在Client顯示線上清單(動態更新)
  • 傳送訊息
    • Server以及所有client都可以看到

DEMO

image

聯絡方式

若有任何問題或疑問,請不吝用 [email protected] 聯絡我

chatroom's People

Contributors

a110605 avatar

Stargazers

Jack Huang avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.