take a look at synapse http://www.ararat.cz/synapse/doku.php/start

if you need some kind of "reliable" udp take a look at ENET (there are pascal headers available).