java code to count the number of user connected to server
i am new to java.and need some help
i want to calculate total number of user connected to my server and send this total number to client software every time any client connected to the server.
please any idea which api i should use.
thank you in advance