How to peek StreamSocket for data in UWP apps

余生颓废 提交于 2019-12-25 08:18:30

问题


With Socket class, I can use Socket.ReceiveAsync method passing SocketFlags.Peek flag. I don't see anything similar for StreamSocket, however.

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).

来源:https://stackoverflow.com/questions/41165901/how-to-peek-streamsocket-for-data-in-uwp-apps

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!