View Full Version : RemoteObject with another binary protocol
raduCocieru
06-26-2007, 04:50 PM
I'm making an experiment to see if I can replace the AMF with another binary protocol to be used with AS3 RemoteObject.
Started by defining my own MyChannel extends Channel ...
Everything works fine... data is encoded and decoded nicely but only for the first call.
if later I try to get another call it fails silently ... the call never gets to the server ... but the cursor is set to busy as it is waiting...
Anyone knows more about RemoteObject and Channel ? The documentation is very shallow.
Any help is appreciated.
Thanks
raduCocieru
06-27-2007, 08:42 PM
Did some experiments with HTTPChannel ... it seems like it uses an XML serializer a sort of an XML version of AMF, with an <amfx> header tag etc.
From what I could figure out i uses a class AMFXEncoder and AMFXDecoder to translate the body property of the IMessage.
Unfortunately this 2 encoder/decoders are private so I cannot override them by extending HTTPChannel ... if I could that would probably meant that any protocol can be written to be used with RemoteObject ... just change the channel and TADA.... :p .... if it was that easy :confused:
Any ideas ?
LOLFlash
06-27-2007, 11:40 PM
what is on server side?
raduCocieru
06-28-2007, 08:18 AM
on the server side is just a script that dumps all it gets to a file so I can review it.
What I am trying to do is replace the AMF serialization/deserialization protocol with an open protocol like HESSIAN.
I was successful in that when I extended the Channel class but it only works for the first call when the Channel in first created ... I get both serialization and deserialization working. But once I try to make the next calls it doesn't enter the insternalSend method from myChannel to make the call it just waits for a reply and stays there.
LOLFlash
07-07-2007, 03:06 AM
I mean what language you use on server side to process binary data.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.