title: How to peek StreamSocket for data in UWP apps
body: <p>With Socket class, I can use Socket.ReceiveAsync method passing SocketFlags.Peek flag. I don't see anything similar for StreamSocket, however.</p>
  
  <p>UWP's InputStreamOptions enum provides Partial and ReadAhead flags but from their description it does not seem they are for the same purpose (checking data availability leaving the data in the input buffer).</p>