Skip to content

A simple server-client architecture communication. You can find three versions of the server, a single message single client server, a multi message single client server and a multi message multi client server

Notifications You must be signed in to change notification settings

mhmelshaaer/server-client-communication

Repository files navigation

server-client-communication

A simple server-client architecture communication. You can find three versions of the server, a single message single client server, a multi message single client server and a multi message multi client server

How to use:

I'm assuming that you will use Intellij editor

  • Choose the server version that you want to start, for example the SingleMsgSingleClientServer
  • Run the main function of the selected server version
  • Now you have to instantiate the client that will communicate with the server. You have 2 options:
    • Run the client on the same machine
    • Run the client on the another machine
  • If tou choose the first option, then use the Junit test class for the selected server
  • So if you want to instantiate a client to communicate with the SingleMsgSingleClientServer, run the test class SingleMsgSingleClientServerTesting after running the corressponding server class
  • For the second option, all you need to do is to run the main function of the server class you want on a machine, then on the other machine run the main function of the Client class giving it the ip of the server machine on the local network and the port

About

A simple server-client architecture communication. You can find three versions of the server, a single message single client server, a multi message single client server and a multi message multi client server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages