Client creates a string "1 2 3 ... 10000 ...", sends it to the server along with the maximum number in the string. Server creates another string like the client sent. It validates it and, returns strcmp()'s result. This is loop-ed every 2 seconds.