How to calculate ping in Winsock?

I'm building a multiplayer game in c++/sfml/Winsock using UDP socket. So far i coded the server and the client and they work perfectly. But i was just wondering how can i calculate the ping between my server and client ?
Isn't that normally done with tcp as udp connectionless and dosent use connect...
Last edited on
Topic archived. No new replies allowed.