diff options
author | Fritz Elfert <felfert@to.com> | 2002-03-16 23:10:52 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2002-03-16 23:10:52 +0000 |
commit | 193af441a127a0daabbd17c512e34817ddbcadfd (patch) | |
tree | deef4cbfdf258ae3c7d8cde2b43a611520f73632 /lib/rfsv.cc | |
parent | 7121719ec7f473c3d26873d688179a7d7f466026 (diff) | |
download | plptools-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 'lib/rfsv.cc')
-rw-r--r-- | lib/rfsv.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/rfsv.cc b/lib/rfsv.cc index 25bf91c..310d7c4 100644 --- a/lib/rfsv.cc +++ b/lib/rfsv.cc @@ -167,6 +167,22 @@ attr2String(const u_int32_t attr) return tmp; } +int rfsv:: +getSpeed() +{ + bufferStore a; + a.addStringT("NCP$GSPD"); + if (!skt->sendBufferStore(a)) + return -1; + if (skt->getBufferStore(a) != 1) + return -1; + if (a.getLen() != 5) + return -1; + if (a.getByte(0) != E_PSI_GEN_NONE) + return -1; + return a.getDWord(1); +} + /* * Local variables: * c-basic-offset: 4 |