Here is an article that describes a protocol and architecture designed to deliver reliable, low latency data via the internet.
http://www.tradingmachines.net/blog_TAIST.html
and background
http://www.tradingmachines.net/blog_DataConnectivity.html
This concept is offered without any code...