Any information, i thank already...
using irrlicht to communicate with a java Application
-
clericuzzi
- Posts: 2
- Joined: Thu May 04, 2006 12:24 am
using irrlicht to communicate with a java Application
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...
Any information, i thank already...
-
hybrid
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
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
yeah man, that's what I want!!
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...
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...