if any one could help me out whit this algorithm.
i would really appreciate if there are 2 clients and server.
The serveer must send the average hours to the 2 clients, for this to happen the clients are asked what time is on each computer that is where the average of hours comes from. The one that is behind is asked to set its time one hour ahead and the one that is ahead is asked to set a delay (if this is not possible then at least have the server send a message to delay the clock.
The client must be ready for the server what it sads some data ("i put 80"), when it recives 80 the client will run a sequence that will open the port and send the time on that machine to the server, each client has a diferent port number, i don't know if the server take care of doing math, it on calculates the average.
where i am heaving trouble is the communication between the server and client, i look the "UDP MULTICAST SENDER" and "UDP MULTICAST RECIVER" as example.
and in case its important i am converting the string that a client sends the server whit a CAST
I HOPE SOMEONE CAN HELPME