Saturday, April 14, 2012

C# to Java stuff

Well, it looks like I have a few new discoveries. First of all, I got the network stuff to work, it was a flag I had to define in an XML file within the APP which marks it as "network using" or something like that.

Interesting discovery today. As it turns out, when you send bytes from C# to Java, you lose a byte on the front of the stream. As a result I ended up with 0000 since the front byte never made it to the other side. Also, Java has some awesome byteBuffer.Order() function which lets the bytebuffer know which way to arrange the bytes. The hard part is, how do I feed data back because as far as I can see, converting edian in C# is not as easy as it is in Java. Might as well just write a byte reverser myself.

No comments:

Post a Comment