Serializing to/from Adobe AMF in C#/Mono?
Using Zend_Amf it's po开发者_如何学编程ssible to serialize php objects to/from Adobe AMF format. Is there an equivalent library for serializing/unserializing C# objects to/from AMF?
I'm working in Mono 2.4.
There are several options. Here's the best.
http://www.fluorinefx.com/
Fluorine provides a full client and server implementations of AMF over HTTP and at least server implementations of AMF over RTMP (I'm not sure about client for RTMP--we just haven't used it so I haven't looked into it). It also includes classes that can be utilized directly for AMF serialization and deserialization.
We use it extensively in our application as an HTTP AMF server, for random AMF serialization/deserialization, RTMP server, and in the past we implemented a plain AMF over TCP socket server using Fluorine (which is no longer necessary, this was pre-RTMP support).
I've recently written a blog post regarding the Flash aspect of FluorineFx AMF data transfer. There's some open source code on github (linked to in the blog post) too.
Maybe it could come in useful : http://labs.specialmoves.com/code/flash-data-transfer-using-fluorinefx/
精彩评论