Added reliable datagram files

Added reliable datagram files and modified it for C-ness