Clone of the UDT project from http://udt.sourceforge.net/license.html