I implement a client/server program. The client is
coded in Java, and server is coded in C runing in
Solaris 2.7.
Client tried to send an integer array to server.
int[] buffer = new int[10];
DataOutputStream out = new
DataOutputStream(socket.getOutputStream() );
for( i=0; i<=9; i++)
out.write(buffer[i]);
In server,
int inbuffer[25];
ret = read(sockid, (void *)inbuffer, 100 )
ret should be 10*4 = 40, but it is 10.
How should I sove the problem?