diff options
author | Fritz Elfert <felfert@to.com> | 2002-03-18 05:01:40 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2002-03-18 05:01:40 +0000 |
commit | 23f25b04b95f08f5fc3aeaf9ea745326246dec9f (patch) | |
tree | dbd68bb6a5e228efa95dbfb18fa69c563925163c /lib/rpcs16.cc | |
parent | 38fc74f68c90aff4909660b89a9c233eac16f626 (diff) | |
download | plptools-23f25b04b95f08f5fc3aeaf9ea745326246dec9f.tar.gz plptools-23f25b04b95f08f5fc3aeaf9ea745326246dec9f.tar.bz2 plptools-23f25b04b95f08f5fc3aeaf9ea745326246dec9f.zip |
- made kpsion SIBO-aware
- Added SIBO-related stuff in PsiTime
- Added new class PsiProcess, renamed rpcs:queryDrive to queryPrograms
and changed it accordingly
- Adapted kspion, plpbackup, plpnfsd and plpftp to use queryPrograms
- Several cleanups in rfsv16
Diffstat (limited to 'lib/rpcs16.cc')
-rw-r--r-- | lib/rpcs16.cc | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/lib/rpcs16.cc b/lib/rpcs16.cc index a65c937..ce13b4d 100644 --- a/lib/rpcs16.cc +++ b/lib/rpcs16.cc @@ -26,6 +26,7 @@ #endif #include <stream.h> +#include <stdio.h> #include <stdlib.h> #include <fstream.h> #include <iomanip.h> @@ -34,32 +35,30 @@ #include "rpcs16.h" #include "bufferstore.h" +#include "bufferarray.h" #include "ppsocket.h" rpcs16::rpcs16(ppsocket * _skt) { skt = _skt; + mtCacheS5mx = 0; reset(); } Enum<rfsv::errs> rpcs16:: -queryDrive(char drive, bufferArray &ret) +getCmdLine(const char *process, string &ret) { bufferStore a; - a.addByte(drive); - if (!sendCommand(rpcs::QUERY_DRIVE, a)) + Enum<rfsv::errs> res; + + a.addStringT(process); + if (!sendCommand(rpcs::GET_CMDLINE, a)) return rfsv::E_PSI_FILE_DISC; - Enum<rfsv::errs> res = getResponse(a, true); - cout << dec << "qd: " << res << " " << a.getLen() << " a="<< a << endl; + if ((res = getResponse(a, true)) == rfsv::E_PSI_GEN_NONE) + ret = a.getString(0); return res; } -Enum<rfsv::errs> rpcs16:: -getCmdLine(const char *process, bufferStore &ret) -{ - return rfsv::E_PSI_GEN_NONE; -} - /* * Local variables: * c-basic-offset: 4 |