Is there any way to know if data is completely received on the other end of a开发者_如何学Python flash.net.Socket? Like a complete event? Based on the event documentation there is none. If there is no way, what are the alternative strategies?
The beauty of Flash is that you don't need to. Flash handles it for you after it's sent. It gets queued, sent over the wire and awaits confirmation (as per the protocol). If there's a problem, an error event will be dispatched and the fault object will have the specifics of the error.
If there's a problem in the transmission (like disconnection, bad route, etc), it will retry 3 times I believe in a span of 30 seconds (timeout). I believe these numbers can be changed, but I wouldn't if I were you. They're pretty much the most optimal in my experience.
精彩评论