title: Stop and wait socket programming with UDP
body: <p>Looking to make a Java stop-and-wait UDP server and client but I'm running into some problems starting off. I've made a simple UDP client and server without the stop-and-wait part, but I would now like to learn how to change it. How can I send ACKs and implement timeouts using java sockets ?</p>
  
  <p>Could someone please post up some examples for me to use in my implementation ?</p>