12-01-2009 05:45 AM
"servers log says that i send all zeros"
Have you put a break point at:
_out.write(bufhello, 0, 8); // 8 bytes to start the connection
and checked that bufhell contains the data you expect?
To test this another way, you could replace your code with
_out.write("UB00000001".getBytes()); // 8 bytes to start the connection