aboutsummaryrefslogtreecommitdiffstats
path: root/ncpd/channel.cc
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2000-01-17 11:49:41 +0000
committerFritz Elfert <felfert@to.com>2000-01-17 11:49:41 +0000
commitab18114bfd38d4632c66401b5bc079241e27fab3 (patch)
tree14f9c1d5f020cf8ed2f205094ca9e2fc907bb969 /ncpd/channel.cc
parent6eceb82662300bf306e70bd943200665bc3c9bc3 (diff)
downloadplptools-ab18114bfd38d4632c66401b5bc079241e27fab3.tar.gz
plptools-ab18114bfd38d4632c66401b5bc079241e27fab3.tar.bz2
plptools-ab18114bfd38d4632c66401b5bc079241e27fab3.zip
Release of plptools-0.5
Diffstat (limited to 'ncpd/channel.cc')
-rw-r--r--ncpd/channel.cc25
1 files changed, 25 insertions, 0 deletions
diff --git a/ncpd/channel.cc b/ncpd/channel.cc
index a75c791..f52cea1 100644
--- a/ncpd/channel.cc
+++ b/ncpd/channel.cc
@@ -32,6 +32,7 @@
channel::channel(ncp * _ncpController)
{
verbose = 0;
+ ncpChannel = 0;
ncpController = _ncpController;
_terminate = false;
}
@@ -61,17 +62,41 @@ ncpConnect()
}
void channel::
+ncpRegister()
+{
+ ncpController->Register(this);
+}
+
+void channel::
+ncpDoRegisterAck(int ch)
+{
+ ncpController->RegisterAck(ch);
+}
+
+void channel::
ncpDisconnect()
{
ncpController->disconnect(ncpChannel);
}
+short int channel::
+ncpProtocolVersion()
+{
+ return ncpController->getProtocolVersion();
+}
+
void channel::
setNcpChannel(int chan)
{
ncpChannel = chan;
}
+int channel::
+getNcpChannel()
+{
+ return ncpChannel;
+}
+
void channel::
newNcpController(ncp * _ncpController)
{