History log of /external/autotest/client/tests/kvm/deps/rss.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
304767d856131c2b33f4baab9062c94720ca3e42 19-Jul-2010 lmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4> KVM test: rss.cpp: write all user messages to a log file

The log file will be placed in the current directory.
For example, when rss.exe is run at startup as administrator under WinXP,
the current directory will be C:\Documents and Settings\Administrator.

Signed-off-by: Michael Goldish <mgoldish@redhat.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4726 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/tests/kvm/deps/rss.cpp
22e06a87ba00e97f22d933428e629b6f8613b1bd 12-Jul-2010 lmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4> KVM test: rss.cpp: use critical section instead of mutex for text buffer access

A critical section should be faster. The difference for this application may
or may not be noticeable (with a large number of files).

Signed-off-by: Michael Goldish <mgoldish@redhat.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4717 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/tests/kvm/deps/rss.cpp
60286b03ae66192780ab6599277936d14bc0eca9 07-Jul-2010 lmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4> KVM test: rss.cpp: add file transfer support

Enable RSS to send/receive files and directory trees (recursively).

See protocol details in rss.cpp.

Changes from v3:
- Protocol change: instead of sending a file in one big packet, send it in
multiple chunks. The last chunk of a file is identified by being smaller.
This solves a problem with transfers of files that happen to be growing or
shrinking while being transferred.
- Change the way messages are displayed in the text box: instead of adding them
immediately and redrawing the text box for each message, queue the messages
in a buffer and flush it every 250ms or when it's full. This makes it
possible to log everything without using a significant amount of CPU time,
even for transfers of thousands of small files.
- Change text box limit to 262144 chars.
- Allow resizing the main window.
- Reuse some code by putting it in an Accept() function.

Changes from v2:
- Use ports 10022 and 10023 by default instead of 22 and 23.

Changes from v1:
- Expand environment variables (e.g. %WinDir%) in all paths.
- Change text box limit to 16384 chars.
- When text box is full, clear 3/4 of old text instead of 1/2 (looks prettier).
- Use const char * instead of char * where appropriate.

Signed-off-by: Michael Goldish <mgoldish@redhat.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4697 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/tests/kvm/deps/rss.cpp
6e34dfc8a9475e233d8404c780791de601663d01 05-Oct-2009 lmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4> KVM test: rss.cpp: send characters to the console window rather than directly to STDIN

Some Windows programs behave badly when their STDIN is redirected to a pipe
(most notably wmic). Therefore, keep STDIN unredirected, and send input to the
console window as a series of WM_CHAR messages.

Signed-off-by: Michael Goldish <mgoldish@redhat.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@3789 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/tests/kvm/deps/rss.cpp
c14e179b7ca8146e49fa40465d2d76763a7bf509 18-Aug-2009 lmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4> KVM test: Simple remote shell server for use with Windows guests

This server provides clients with an interactive cmd.exe shell.
It uses no encryption or authentication.

Usage: rss.exe [port]
The default port is 22.

Signed-off-by: Michael Goldish <mgoldish@redhat.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3553 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/tests/kvm/deps/rss.cpp