aboutsummaryrefslogtreecommitdiffstats
path: root/ncpd/ncp.h
diff options
context:
space:
mode:
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