Is it technically possible to serialize an object in C++ to send it via a socket and de-serialize in AS3 (bi-directionally)?
Asked
Active
Viewed 358 times
3 Answers
0
No it's not possible. This only possible when you use same language with same serilazation/deserialization on both sides. You have to develop and use some custom protocol to send object states via socket. Read more about Google Protobuf encoding.
Thanks to chac - As3 Google Protobuf

Denis Ermolin
- 5,530
- 6
- 27
- 44
-
1I found something [here](http://code.google.com/p/protobuf/wiki/ThirdPartyAddOns) – CapelliC Oct 26 '12 at 10:15
-
Changed url to encoding. This will help to understand idea of serialization datatypes. – Denis Ermolin Oct 26 '12 at 10:15
0
I don't agree with the previous answer, it should be possible with some work. There are quite a lot of Flash remoting implementations using AMF (from Java, PHP, Python). See this post.

Community
- 1
- 1

Antoine Lassauzay
- 1,557
- 11
- 12
0
you'll need an AMF lib, and the only ones I'm aware of are very linked to the PHP stack. Look around, you might find a pure C/C++ one though. If you're desperate one possibility might be to look at Haxe, which has an AMF implementation, and compile it to C++

Ariel Sommeria-Klein
- 328
- 1
- 6