flash.net.Socket complete implementation