Application still blocks even when using non-blocking cipher stream with socket?

The reason for cis. Read getting blocked is simple: The Cipher stream wraps around the socket stream (you pass the socket stream to Cipher stream constructor) hence whenever you call read on Cipher stream it will cause the code in cipher stream to read data from socket so that it can decrypt the data. This is where (read from the socket stream) the code blocks.

The reason for cis. Read getting blocked is simple: The Cipher stream wraps around the socket stream (you pass the socket stream to Cipher stream constructor) hence whenever you call read on Cipher stream it will cause the code in cipher stream to read data from socket so that it can decrypt the data. This is where (read from the socket stream) the code blocks.

You should not have any problem with blocking unitll you are running this code in UI thread. You can run this code on another worker thread so that your UI doesn't freeze.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions