Is there any way for non-blocking IO with phobos?

Sobaya sobaya007 at gmail.com
Tue Nov 13 13:52:57 UTC 2018


I want to connect to a server and communicate with ssh.

So I tried to spawn the process of ssh using pipeProcess 
function, and read/write with its pipe's stdin and stdout.

But I don't know how many lines are sent from the server for an 
input, so readln function blocks.

I think this can be solved with non-blocking IO, but I cannot 
find how do I use non-blocking IO with phobos.

Please give me any ideas.

Thanks.


More information about the Digitalmars-d-learn mailing list