socket programming using bufferedreader
<p>In my application I have 2 programmes, called <code>server.java</code> and <code>client.java</code>, <code>server.java</code> acts as a server and <code>client.java</code> acts as a client.
From <code>server.java</code>, I am writing some data to <code>client.java</code>, by using the following code:</p>

<pre><code>bufferedwriter.write(data);
bufferedwriter.flush();
</code></pre>

<p>to read the above data in client i have written the below code:</p>

<pre><code>if(bufferedreader.ready())
while((a=in.read)!= -1)
</code></pre>

<p>I am able to receive data from server to client,but the problem is whenever I kept a breakpoint at <code>BufferedWriter</code>. flush in <code>server.java</code> programme and <code>if(bufferedreader.ready())</code> of client.java,it is not going to intented destination (i.e, in my application intended destination is <code>if(bufferedreader.ready())</code> of <code>client.java</code>), but whenever I am closing <code>server.java</code> debugging, the debugging point in client programme is enabling, can you please help me to solve this.</p>
