title: Even though client wrote the data on network stream it is not available on server Why
body: <p><strong>client side coding</strong></p>
  
  <pre><code>TcpClient tcpclnt = new TcpClient("192.157.1.1", 8001);
  Stream stm = tcpclnt.GetStream();
  byte[] bites = new byte[dataLength];
      // assigning values for bites
  stm.Write(clientdata, 0, clientdata.Length);
  </code></pre>
  
  <p><strong>Server side Coding</strong></p>
  
  <pre><code> TcpListener listener = new TcpListener(IPAddress.Any, 8001);
   listener.Start(10);
   Socket soc = listener.AcceptSocket();
   byte[] bites = new byte[1000];
   int avail = soc.Available;
   int receivedBytesLen = soc.Receive(bites);
  </code></pre>
  
  <p>After writting the clientdata on stream also  In server side soc.Available is zero. So server can't read the data. What is the problem?</p>