Hello,
I'd like to ask if there is some suitable network library (or how to use vanila library for this purpose) for processing which offer functionality usefull for network aplication such as games or cooperative work (like painting or 3D modeling) .... (better realtime, but not necessary)
In vanila network library included in processing I miss this features:
1]Passing structured data (objects of some class) throught network instead of just strings or bytes.
2]Some sinchroinization functionality
3]Response as fast as possible
I know that all these things could be probably programmed by user, but it's much of work, and I don't know anything about networking. Processing looks like very very friendly way how to start with programing graphics. It would be nice if it has such a great functionality also in networking.
If I look and some network shooter or simulator like IL-2 sturmovik or QuakeIII arena, I can't imagine how to do something similar using this vanila network library in processing.
As I tried, even the example of network network drawing fails if I switch to some common frameset (like 30 or 60fps) even on localhost. Why, if there are cooperative painting programs which work on internet and multiplayer shooters which need also such a fast response and passing throught much more of data?
Is there any good tutorial about synchronization and parsing of datastructures for network?
If not, can you advice me how to implement "passing object throught network" by myself?
I mean something like
Code:
byte[] parseObjectIntobytes(object obj, length){
...
};
void writeObjectToNetwork(object obj){
byte[] buff = parseObjectIntobytes(object obj, obj.length);
client.write(buff);
}
object readObjectFromNetwork(){
....
}