0

Is it technically possible to serialize an object in C++ to send it via a socket and de-serialize in AS3 (bi-directionally)?

sehe
  • 374,641
  • 47
  • 450
  • 633
user1758548
  • 31
  • 1
  • 4

3 Answers3

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
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++