Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 849 Bytes

File metadata and controls

26 lines (18 loc) · 849 Bytes

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.