plptools
Loading...
Searching...
No Matches
linkchannel.h
Go to the documentation of this file.
1/*
2 * This file is part of plptools.
3 *
4 * Copyright (C) 1999 Philip Proudman <philip.proudman@btinternet.com>
5 * Copyright (C) 1999-2001 Fritz Elfert <felfert@to.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * along with this program; if not, see <https://www.gnu.org/licenses/>.
19 *
20 */
21#pragma once
22
23#include "channel.h"
24#include "bufferarray.h"
25
26#define LINKCHAN_DEBUG_LOG 1
27#define LINKCHAN_DEBUG_DUMP 2
28
29class LinkChannel : public Channel {
30public:
32
34 const char *getNcpRegisterName();
35 void ncpConnectAck();
37 void ncpConnectNak();
39 void Register(Channel *);
40private:
43};
An array of BufferStores.
Definition: bufferarray.h:30
A generic container for an array of bytes.
Definition: bufferstore.h:36
NCP * ncpController
Definition: channel.h:74
int ncpChannel
Definition: channel.h:75
int registerSer
Definition: linkchannel.h:41
BufferArray registerStack
Definition: linkchannel.h:42
const char * getNcpRegisterName()
Definition: linkchannel.cc:89
void ncpRegisterAck()
Definition: linkchannel.h:38
void Register(Channel *)
Definition: linkchannel.cc:108
void ncpConnectAck()
Definition: linkchannel.cc:93
void ncpConnectNak()
Definition: linkchannel.cc:104
void ncpConnectTerminate()
Definition: linkchannel.cc:98
void ncpDataCallback(BufferStore &a)
Definition: linkchannel.cc:45
Definition: ncp.h:55
static RFSV * a
Definition: main.cc:55