java socket programming problem in reading input stream
I have created a socket to a linux machine on my local network, socket is created and connected successfully, then I have created one DataInputStream and one DataOutputStream by socket. writing a byte array and length of byte array to output stream and then flush output stream. But when I try to read input stream it is blocked due to no data is available in input stream, I check this by available() method.
However, I connected to this socket in iphone and flex successfully, can anyone suggest me what should i do to resolve this.
thanks in advance.