A simple implementation of group communication with MulticastSocket
-
Clone the repo and change to that folder
-
Compile the files
javac *.java- Now execute the code
# To run the client
java -cp . MulticastGroup <group-name> <username>
# To run the group monitor
java -cp . MulticastGroupMonitor <group-name>-
Note:
-
Valid group names:
timetable,exams,classes -
Type
.exitto leave the group.
-