J
Jan Li?e
Hello,
Im currently programing a network-game in java.
For this i have to transfer on the one hand strings
to implement some simple protocol(like "Ready", "Phase1",etc...)
and on the other hand data, to be more precisely i have to
transfer a char[] [] and later some integers. I know that
i can do the later with serialization. But on my clients is running as a
background thread a tcp receiver and my question is how can i manage to
differentiate within my receiver between the protocol strings i transfer and
the objects i want to send via serialization. Im struggling with this at the
moment...
Thanks in advance,
Jan
Im currently programing a network-game in java.
For this i have to transfer on the one hand strings
to implement some simple protocol(like "Ready", "Phase1",etc...)
and on the other hand data, to be more precisely i have to
transfer a char[] [] and later some integers. I know that
i can do the later with serialization. But on my clients is running as a
background thread a tcp receiver and my question is how can i manage to
differentiate within my receiver between the protocol strings i transfer and
the objects i want to send via serialization. Im struggling with this at the
moment...
Thanks in advance,
Jan