well, what I would do is as Rak'Kar said, add a timestamp to your packet; however, I would also suggest making a "fuller" packet by having a packet such as:
Here's the problem, I've got a program where i'm trying to synchronize 2 sounds at once by sending the current position in the song on the server to the client, but it gets offset by a little bit cuz of the time it takes to send from the server to the client.....how do i calculate this time? I'm rather new to winsock and I've tried doing a simple GetTickCount, but of course, the two ticks were different, so that won't work at all.
reason being is that during synchronization, the recipients song might not have changed yet so you might have the following:
unsigned int SONG_ID; // ID of song, used to index into your song list
unsigned int SONG_TIME; // current time of song, in milliseconds