using irrlicht to communicate with a java Application

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
clericuzzi
Posts: 2
Joined: Thu May 04, 2006 12:24 am

using irrlicht to communicate with a java Application

Post by clericuzzi »

I'm trying to make an aplication to run in a network, and i'm implementing the network part with sockets in Java, and instead of using JIRR, i'd like to use C++ and communicate with the java server by using the compiled program made with irrlicht to export parameters, like XML, so the java socket could read.

Any information, i thank already... :D
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

welcome to the Irrlicht forums. Please avoid double/cross posting in the forums. I just removed this same post from the "Irrlicht challenge" thread.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

:? Umm, what do you want?
I have understood the following scenario: you have a java server which communicates with Irrlicht apps written in C++. You're now thinking about techniques to implement the communication?
Since you mentioned XML I assume that you do not have to do real-time communication. Otherwise each byte transferred should be checked for redundancy - and XML is full of redundant characters. So if you want simple but slightly slower communication I'd recommend XML-RPC which have implementations in most languages available. You can easily send structured informations with XML-RPC without thinking about protocols etc. We are using this solution in our project and it's still very fast.
If you have to do real-time communication or reduce the transferred data use a simple protocol over plain sockets. This is easily possible with posix sockets and Java sockets. There are several tutorials and books on this topic available. But note that this requires some more work to make the link fail-safe (you can easily block your app due to missing data input etc.).
Is that what you want? Otherwise describe your problem a little more.
clericuzzi
Posts: 2
Joined: Thu May 04, 2006 12:24 am

Post by clericuzzi »

yeah man, that's what I want!! :D :D :D

I'm makin a multiplayer game for a project in college, it's kind like the game WORMS (don't know if you know). The game runs in turns, and it will run locally on each machine but the java server has to, in each turn, deliver the information of the next turn in each machine and allow the game to excecute the move.

the game is in C++, and there's no need fot real-time communication (i think) since the action will be in turns. i did a little search on XML-RPC and i've found a lot of good stuff, if there's anything else you cold tell me i'd appreciate... :D
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

hmm.. turn-based server game. i'd pick php/xml for portability, scalability, and seamless website integration, plus all the fun of debugging xml in a web browser!
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Post Reply