Skip to content

gihanep/pubsubapplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

  1. Compile the Server and Client javac Server.java javac Client.java
  2. Start the server and client in separate terminals java Server eg: java Server 5000 java Client eg: java Client localhost 5000 SUBSCRIBER java Client eg: java Client localhost 5000 PUBLISHER
  3. Send the messages from client(PUBLISHER)
  4. Server and client(SUBSCRIBER) will print the client(PUBLISHER) messages
  5. send "terminate" to exit

javac Server.java javac Client.java gnome-terminal -- bash -c "java Server 5000" sleep 2 gnome-terminal -- bash -c "java Client 127.0.0.1 5000 SUBSCRIBER" gnome-terminal -- bash -c "java Client 127.0.0.1 5000 PUBLISHER"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors