问题
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