Adobe Flash clinet/c++ srver

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
anandh
Posts: 61
Joined: Thu Sep 14, 2006 12:40 pm
Contact:

Adobe Flash clinet/c++ srver

Post by anandh »

Hi all,
May be this approach is wrong.

is there is any multiuser server for Flash based on c++.
I saw this http://osflash.org/red5 this is based on java.

I have a card game done in SDL and c++.Is there any libray to use flash as front end and c++ as game server.
The main aim going for Flash is to bring rich graphics.

share your knowledge in c++/Flash it would Help me.
:?
Daniel FF
Posts: 53
Joined: Tue Feb 19, 2008 7:15 pm

Post by Daniel FF »

Hi anandh,

Take a look in remoteObject from actionScript ,u can use that to comunicate server using amf protocol
torleif
Posts: 188
Joined: Mon Jun 30, 2008 4:53 am

Post by torleif »

Flash uses a very simple XML protocol. Just #include "sys/socket.h" and you should be able to write one in a page or so. If you run windows you can download a sys/socket from the web.

I wrote my own in python and the basics only took a page, advanced things such as server rooms that took the longest time to write.
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

I recommend just using the binary sockets in flash. It's the same as the berkley tcp sockets in C++ so they will match up perfectly. Personally I used C# for my server because threading is less of a nightmare, and since it's a server I wanted the GC to take care of any memory leaks for me. (Yeah, I'm lazy, who cares.)
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Post Reply