http://udt.sourceforge.net/
Good chance they already did what you need. On supercomputers with a distributed filesystem (Sector/Sphere) at that. :)
http://enet.bespin.org/
http://enet.bespin.org/