# as2 and c++ socket communication

**URL:** <https://forum.kirupa.com/t/as2-and-c-socket-communication/634746>\
**Category:** flash\
**Created:** [June 10, 2016, 1:09am UTC](https://forum.kirupa.com/t/as2-and-c-socket-communication/634746 "2016-06-10T01:09:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Serifaz](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@Serifaz](https://forum.kirupa.com/u/Serifaz)\
**Post date:** [June 10, 2016, 1:09am UTC](https://forum.kirupa.com/t/as2-and-c-socket-communication/634746/1 "2016-06-10T01:09:06Z")

</div>

I made a simple c++ console application that communicates with a database.  
I want to make a flash application to communicate with the console that will in turn grab information from the database and send it back to flash.  
Is there a way to do this in as2?  
if not how would I accomplish this in as3 or is there an alternative to sockets in as2?  
Sample code would be really appreciated.  
Please don’t link me to an entire api.

I just need a simple example of how to accomplish sending and receiving data.

---

<div class="post-metadata">

**Author:** ![Serifaz](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@Serifaz](https://forum.kirupa.com/u/Serifaz)\
**Post date:** [June 13, 2016, 6:38am UTC](https://forum.kirupa.com/t/as2-and-c-socket-communication/634746/2 "2016-06-13T06:38:46Z")

</div>

bump
