diff options
Diffstat (limited to 'ncpd/channel.cc')
-rw-r--r-- | ncpd/channel.cc | 25 |
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) { |