Completed DatagramFactory. Need testing