In one side I have a Java client writing ints into its outputstream: int a = 20; dataout.writeInt(a); dataout.flush();
From the other side I have a C server listening the connection:
int client = accept(...);
How to read the int sent by Java?
If I had a Java server, i could easily write: int a = dataIn.readInt();
How to do this in C?
thanks