Skip to content

Grzegorz-GG/Chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat

Sample chat application written in JavaFX (client + multithreaded server). FXML layout was created in JavaFX Scene Builder. The project contains:

  • Client chat application
  • Name of a particular client (client's nickname) is always highlighted on the list with active clients (users that are logged in establish a connection with the server). After establishing the connection user needs to enter a nickname using "/nick [nickname]" pattern. Following information/alerts are received in a text form from the server:

    • "/nkok" - information from a server that the nickname for a given client was accepted
    • "/nkrm xxx" - changed/removed nickname
    • "/nonk" - nick was incorrect or not defined at all
    • "/nkex" - information that nickname already exists

    Each client's nickname is checked whether it is unique in the "realm" of logged users.

  • Chat server (multithreaded)
  • Each client is placed in a separate thread (threadsArray is populated with them).

Further details regarding this application can be found in the comments added to the source code.



obraz

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published