|
In the lotto program, Clients choose a number from 1 to 10 and send it to the server. Server produces a random number every 2 min and checks if the number is the same with the client choice. Then, send the result(if won or lose) to the clients.
At this point, the result is sent immediately to clients.
That i want to achieve, is: the result need to be send at the end of 2min.
So a second draw can occur.
(When clients receive the message need to disconnect)
Thanks
|