I am writing a
string using DataOutStream classes writeBytes method.
os.writeBytes(m_send_buffer);
On the other side I am reading using InputStream in while loop.
I am using following code on the other side(proxy server)
while((bytes_read=from_client.read(buffer))!=-1) {
to_server.write(buffer, 0, bytes_read);
to_server.flush();
}
I am gettinng blocked in the loop,I guess the reason is I am not getting end of stream.Can anyone suggest an alternate or am I doing something wrong?.
Thank!!
Arvind
}