Image

Imagejdevelop wrote in Imagecpp

C++->Java connections via network

Hello!
I developing the application, which has Java applet at the client side, and server written in C++.
The old version had the server written in Java, and there was no any problems, but now i can't get the valid data from client!

I wrote the test applicaiton in Java, which just opens the connection to server and sent the int to it with
Socket.getOutputStream().write(int);


But when i reading the 4 bytes into the buffer from the socket on server side, and then dumping the buffer,
i seeing that it contains different value then i sent.

What the problem? May be somebody wrote such applications and can give an advice?