On Tuesday, 13 November 2018 at 13:52:57 UTC, Sobaya wrote:
But I don't know how many lines are sent from the server for an
input, so readln function blocks.
Read lines in another thread and send them to the main thread
with std.concurrency.
On Tuesday, 13 November 2018 at 13:52:57 UTC, Sobaya wrote:
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
On 11/13/18 8:52 AM, Sobaya wrote:
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 func
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 s