Asynchronous SslStream Error [closed]

☆樱花仙子☆ 提交于 2019-12-11 06:32:49

问题


I created an Asynchronous SslStream Listener but it did not receive the message from the client properly

The Listener Code

Code Removed

joran i don't want the code to be here anymore

Here is the message i try to send to the server "Hello From Client"

and here is how my server console show it

Hello
 From
 Clie
t 

Can someone tell me why i did not receive the message correctly ?, it is really very weird and i can't solve it please i want help

And\Or can i use StreamReader to receive a message ? is it non blocking so the code will remain asynchronous ?


回答1:


You haven't posted the code where you convert the generated byte array to a string, which would help. Seeing as you're declaring your read buffer as 5 bytes in length I suspect this has something to do with the 5 characters per line output.



来源:https://stackoverflow.com/questions/12415021/asynchronous-sslstream-error

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