# C++ to Flash / Actionscript RPC bridge - best implementation?

**URL:** <https://forum.kirupa.com/t/c-to-flash-actionscript-rpc-bridge-best-implementation/305310>\
**Category:** Uncategorized\
**Created:** [February 23, 2010, 11:06am UTC](https://forum.kirupa.com/t/c-to-flash-actionscript-rpc-bridge-best-implementation/305310 "2010-02-23T11:06:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ez74](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@ez74](https://forum.kirupa.com/u/ez74)\
**Post date:** [February 23, 2010, 11:06am UTC](https://forum.kirupa.com/t/c-to-flash-actionscript-rpc-bridge-best-implementation/305310/1 "2010-02-23T11:06:01Z")

</div>

hi,

I’m looking for the best way to implement a “bridge” between an existing c++ server side to a Flash / Actionscript client application.

The bridge should allow the following operations:

1. Allow the client to call functions/procedures on the c++ server side
2. Allow the c++ server to send “simple” data (events like) to the client at ~30FPS
3. Allow the c++ server to stream real-time video to the client

My best solution so far was to implement this kind of bridge using TCP sockets (xmlSocket or binarySocket), sending XML / binary messages from the c++ server side to the Flash / Actionscript client and back.  
This solution answers points 1+2, but not 3

My question:

1. Is there a better way to implement an RPC (remote procedure call) between Flash / Actionscript, other than TCP?
2. What is the best way to implement point 3 (c++ to Flash / Actionscript real-time video streaming)?

Appreciate any help, tip on this issue,  
EZ
