Crossplatform socket abstraction for Haxe NME