G
Gerry
Hi.
I'm have an existing game written in C/C++ which can be played over the
Internet.
The protocol simply transmits the messages in binary Big Endian format.
Assembling and disassembling the messages are pretty straight forward
in C.
I am trying to create a Java version of the game which is compatible
with my existing protocol. I am very new to networking in Java and how
to transmit non-text data in Java.
Is there a simple way to do something simple as convert 4 bytes into a
32-bit signed integer and vice versa?
I've noticed that the BigInteger class does something close, but it
would require a convoluted path to get what I need.
I've read about Object Serialization, but that seems more suited for
sharing data between Java programs.
It seems very simple to do high-level networking stuff in Java, but when
it comes to doing low level stuff it isn't very straight forward how to
do it.
Any help or pointers to web pages would be appreciated.
Thanks.
I'm have an existing game written in C/C++ which can be played over the
Internet.
The protocol simply transmits the messages in binary Big Endian format.
Assembling and disassembling the messages are pretty straight forward
in C.
I am trying to create a Java version of the game which is compatible
with my existing protocol. I am very new to networking in Java and how
to transmit non-text data in Java.
Is there a simple way to do something simple as convert 4 bytes into a
32-bit signed integer and vice versa?
I've noticed that the BigInteger class does something close, but it
would require a convoluted path to get what I need.
I've read about Object Serialization, but that seems more suited for
sharing data between Java programs.
It seems very simple to do high-level networking stuff in Java, but when
it comes to doing low level stuff it isn't very straight forward how to
do it.
Any help or pointers to web pages would be appreciated.
Thanks.