From 193af441a127a0daabbd17c512e34817ddbcadfd Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Sat, 16 Mar 2002 23:10:52 +0000 Subject: - ncpd now works with both Series 3 and Series 5 - ncpd now has autobaud feature (default on), which cycles baudrate - lib: added getSpeed() for retrieving current speed of connection - plpftp: Use getSpeed() - plpbackup: Ongoing work - configure stuff: removed several entries from acconfig.h comments now defined as 3rd arg to AC_DEFINE... --- lib/rpcs32.cc | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'lib/rpcs32.cc') diff --git a/lib/rpcs32.cc b/lib/rpcs32.cc index 38d7933..ebb4f9c 100644 --- a/lib/rpcs32.cc +++ b/lib/rpcs32.cc @@ -169,18 +169,38 @@ getMachineInfo(machineInfo &mi) static unsigned long hhh; Enum rpcs32:: -regOpenIter(void) +regOpenIter(u_int32_t uid, char *match, u_int16_t &handle) { bufferStore a; Enum res; - a.addStringT("HKLM\\"); + cout << "Oiter" << endl; + a.addDWord(uid); + a.addDWord(strlen(match)); + a.addStringT(match); if (!sendCommand(rpcs::REG_OPEN_ITER, a)) return rfsv::E_PSI_FILE_DISC; res = getResponse(a, true); cout << "ro: r=" << res << " a=" << a << endl; - if (a.getLen() > 0) - hhh = a.getDWord(0); + if (a.getLen() == 2) + handle = a.getWord(0); + return rfsv::E_PSI_GEN_NONE; +} + +Enum rpcs32:: +regReadIter(u_int16_t handle) +{ + bufferStore a; + Enum res; + + cout << "Riter" << endl; + a.addWord(handle); + if (!sendCommand(rpcs::REG_READ_ITER, a)) + return rfsv::E_PSI_FILE_DISC; + res = getResponse(a, true); + cout << "ro: r=" << res << " a=" << a << endl; + if ((a.getLen() == 3) && (a.getByte(2) == 0xff)) + return rfsv::E_PSI_FILE_EOF; return rfsv::E_PSI_GEN_NONE; } -- cgit v1.2.3