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... --- plpftp/ftp.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'plpftp') diff --git a/plpftp/ftp.cc b/plpftp/ftp.cc index 2ce30af..c94afc4 100644 --- a/plpftp/ftp.cc +++ b/plpftp/ftp.cc @@ -224,7 +224,9 @@ session(rfsv & a, rpcs & r, int xargc, char **xargv) if ((res = r.getOwnerInfo(b)) == rfsv::E_PSI_GEN_NONE) { r.getMachineType(machType); if (!once) { - cout << _("Connected to a ") << machType << _(", OwnerInfo:") << endl; + int speed = a.getSpeed(); + cout << _("Connected to a ") << machType << _(" at ") + << speed << _(" baud, OwnerInfo:") << endl; while (!b.empty()) cout << " " << b.pop().getString() << endl; cout << endl; @@ -765,9 +767,15 @@ session(rfsv & a, rpcs & r, int xargc, char **xargv) continue; } // RPCS commands +#define EXPERIMENTAL #ifdef EXPERIMENTAL if (!strcmp(argv[0], "x")) { - r.regOpenIter(); + u_int16_t hhh; + if (r.regOpenIter(-1, "%PDF-", hhh) == rfsv::E_PSI_GEN_NONE) { + Enum res; + while ((res = r.regReadIter(hhh)) == rfsv::E_PSI_GEN_NONE) + ;; + } continue; } if (!strcmp(argv[0], "y")) { -- cgit v1.2.3