aboutsummaryrefslogtreecommitdiffstats
path: root/ncpd/ncp.h
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 /ncpd/ncp.h
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 'ncpd/ncp.h')
-rw-r--r--ncpd/ncp.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/ncpd/ncp.h b/ncpd/ncp.h
index 72c5ca8..5a6a1ba 100644
--- a/ncpd/ncp.h
+++ b/ncpd/ncp.h
@@ -27,14 +27,33 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
+
+#include <vector>
+
#include "bufferstore.h"
#include "linkchan.h"
+#include "ppsocket.h"
+
class Link;
class channel;
#define NCP_DEBUG_LOG 1
#define NCP_DEBUG_DUMP 2
+/**
+ * Representation of a server process on the PC
+ * A dummy which does not allow connects for now.
+ */
+class PcServer {
+public:
+ PcServer(ppsocket *, string _name) { name = _name; }
+ ~PcServer() {}
+ bool clientConnect(int, int) { return false; }
+ string getName() { return name; }
+private:
+ string name;
+};
+
class ncp {
public:
ncp(const char *fname, int baud, unsigned short _verbose = 0);
@@ -51,9 +70,14 @@ public:
bool hasFailed();
bool gotLinkChannel();
+ PcServer *findPcServer(const char *name);
+ void registerPcServer(ppsocket *skt, const char *name);
+ void unregisterPcServer(PcServer *server);
+
void setVerbose(unsigned short);
unsigned short getVerbose();
short int getProtocolVersion();
+ int getSpeed();
private:
friend class Link;
@@ -87,6 +111,7 @@ private:
short int protocolVersion;
linkChan *lChan;
int maxChannels;
+ vector<PcServer> pcServers;
};
#endif