Copied low level network layer from a side project called UdpSnake.