StandaloneServer - lembang/GreenTeam331 GitHub Wiki
Class RMIServerUI
->is a RMI server, which blended with GUI (Graphical User Interface)
initializeConnection(, )
->this method, is to create a new RMI Registry service, it uses a thread and socket, to keep the connection.
deinitializeConnection()
-> this method is to de-register RMI Service.
processConnection(int port)
-> Socket connection to receive multiple client, purpose to use Socket is to make a connection to each client, the first network service is done by RMI.
getClientList()
-> Get akk the client on the list, and add them to array list.
sendPublicMessage(String keyword, String username, String message)
-> Update the message to all the client and server
addClient(Socket clientSocket)
-> Add client in the socket into the hashmap.
connect(String username)
-> get the player name
disconnect(String username)
-> remove the user from the has table and discconect the connection
generatedSnake()
-> To create the initialize snake on the server
generatedLadder()
-> To create the initialize Ladder on the server
generatedStar()
-> To create the initialize Star on the server