If you need some info on the encoding scheme for AMF messages then
download AMFPHP and look at the io folder. I'm guessing that what you're
doing right now is checking for 0x02, then 4 bytes of the message length
and then the Unicode string. AMF defines about a dozen of these codes
(0x01 for bool, 0x07 for null, etc.) and there all fairly simple to
serialize and deserialize if you know what you're doing and have access
to a decent pack/unpack function.
Patrick Mineault
www.5etdemi.com
www.5etdemi.com/blog
www.amfphp.org
Carlos Rovira wrote:
Philippe, that's great :),
But if I'm not wrong, LocalConnection uses AMF protocol behind the scenes.
Best,
C.
2005/7/12, Philippe <[EMAIL PROTECTED]>:
Would it fit on OSFlash?
For those who may be interested, I reverse-engineered the
LocalConnection (Win32) protocol so you can fake a LocalConnection
with any language which can do Win32 API calls. I believe a Linux/Mac
port shouldn't be too difficult to do.
Now that I did it in C, I'll port it to .NET as a native
LocalConnection logger panel for the FlashDevelop project.
The only problem is that only string data seem to be easily decoded.
However it kind of look like the AMF encoding, which I believe is a
very reasonnable supposition...
Regards,
Philippe
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org