Skip to content

Wartem/client-server-feature-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

client-server-feature-examples

Client & Server - use cases like chat.

The first step has been taken in this project. More features can be added later. The goal is to learn more by adding functionality like maybe a file server, broadcast audio, fetch information, use resources etc.

Frequent refactoring and cleaning up before adding more code.


Clients connects to a local server. The server creates one thread per client and broadcasts messages from clients to all connected clients. A class handles the message data when it's not in Json-format.

Json is used when sending data, according to a protocol.

Some techniques and APIn used: TCP. Socket, ServerSocket, DataIn and OutPutStreams, Multithreaded, synchronization when using many threads, InputStreamReader, BufferedReader


IDE: intellij.