Buffering Receive Event - WeOnlyDo Discussion board

Buffering Receive Event (General questions)

by bmclellan, Tuesday, August 28, 2007, 06:43 (6297 days ago)

When I execute a receive event and get data, it immediately returns, during tha time, I update my screen, and do some additional parsing. When I get back to the top of my loop to receive data, I think it is already gone.

Once you have created your connection, are any of the contents of the receive buffer saved if you have not called the receive command?

i.e.
loop
ssh.receive
update display
pause for 2 seconds
go back to top

since I paused for 2 seconds, is the data buffered so that when I call the ssh.receive, I will get any data that I missed when I was processing, as well as new data while this command executes?


Thanks!
Barry


Re: Buffering Receive Event

by wodDamir, Tuesday, August 28, 2007, 09:28 (6297 days ago) @ bmclellan

Barry,

You should use Received Event and simply append the data to some variable to have all the data. Received Event could be triggered more then once, and in that case the contents of previously received call would remove the contents from the buffer.

Also, Methods like WaitFor and Execute remove them from the buffer also.

Hope this helps.

Regards,
Damba

Re: Buffering Receive Event

by bmclellan, Tuesday, August 28, 2007, 12:52 (6297 days ago) @ wodDamir

Good morning,

Unfortunately I can't use the Receive Events method because I am using a vbscript type language. Basically I need something that will ensure that while the connection is open the receive contents are being buffered until I call the routing again.


Thanks!
Barry

Re: Buffering Receive Event

by wodDamir, Tuesday, August 28, 2007, 14:23 (6297 days ago) @ bmclellan

Barry,

Perhaps the code I gave you in my response to your other post can help with that?

Regards,
Damba