aboutsummaryrefslogtreecommitdiffstats
path: root/plpftp
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2002-03-16 23:10:52 +0000
committerFritz Elfert <felfert@to.com>2002-03-16 23:10:52 +0000
commit193af441a127a0daabbd17c512e34817ddbcadfd (patch)
treedeef4cbfdf258ae3c7d8cde2b43a611520f73632 /plpftp
parent7121719ec7f473c3d26873d688179a7d7f466026 (diff)
downloadplptools-193af441a127a0daabbd17c512e34817ddbcadfd.tar.gz
plptools-193af441a127a0daabbd17c512e34817ddbcadfd.tar.bz2
plptools-193af441a127a0daabbd17c512e34817ddbcadfd.zip
- 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...
Diffstat (limited to 'plpftp')
-rw-r--r--plpftp/ftp.cc12
1 files changed, 10 insertions, 2 deletions
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<rfsv::errs> res;
+ while ((res = r.regReadIter(hhh)) == rfsv::E_PSI_GEN_NONE)
+ ;;
+ }
continue;
}
if (!strcmp(argv[0], "y")) {