An implementation of a reliable Socket for sendning UDP messages in Java