Receive buffer limitations (General questions)
Hello,
Are there any limitions to the size of the receive buffer or will it hold as much data as I can receive in one shot before calling the .Receive(dataready) method?
The reason I ask, is that I when I check the objSSH.DataReady object I get 24,674 bytes, and my .nfo debug file shows my entire output, but when I pull the data out of the .Receive buffer, it is missing quite a few bytes from the end of the data.
Thanks
Barry
Re: Receive buffer limitations
Barry,
You should call multiple Receive Method if you are using wodSSH in Blocking mode without Events.
Let us know how it goes.
Drazen
Re: Receive buffer limitations
Sorry, does that mean there is a limitation?
I just want to make sure I am calling it often enough!!
Thanks
Barry
Re: Receive buffer limitations
Barry,
SSH connection flows and Receive Method will receive all data that is currently received by wodSSH. If some data is left you will receive it when you call next Receive Method.
If you want to receive all data at same time please use Execute Method instead.
[code]ssh.WaitFor( weonlydo(at)linux:~$ )
ssh.DataReady = 0
debug.print ssh.Execute( ls -al + vbLf, weonlydo@linux:~$ )[/code]
More help for Execute Method you can find here:
http://www.weonlydo.com/SSH/Help/WODSSHLib~wodSSH~Execute.html
Drazen
Re: Receive buffer limitations
Thanks!
Will the execute prompt timeout only if no data is being received or will it timeout even if you are receiving data but the timer wasn't set to long?
I'm not sure if I would want to put 5 minutes because there could be a lot of data, or just put 10 seconds, because I wouldn't want to pause too long if no data was being received.
Thanks!
Barry
Re: Receive buffer limitations
Barry,
You can add any value in Execute Method for timeout. Does it work?
Drazen