39 if (_ncpChannel != -1) {
48 lout <<
"linkchan: << msg ";
55 if ((len >= 5) && (
a.getByte(0) == 1)) {
57 unsigned int ser =
a.getWord(1);
58 int res =
a.getWord(3);
64 strncpy(srvName,
a.getString(7), 17);
66 lout <<
"linkchan: received registerAck: ser=0x" << hex << setw(4)
67 << setfill(
'0') << ser <<
" res=" << res <<
" srvName=\""
68 << srvName <<
"\"" << endl;
74 lout <<
"linkchan: found ser=0x" << hex << setw(4) <<
75 setfill(
'0') << se.
getWord(0) <<
76 " on stack -> callBack to waiting chan" << endl;
77 if (strlen(srvName) < 4)
78 strcat(srvName,
".*");
86 lerr <<
"linkchan: unknown message " <<
a.getByte(0) << endl;
95 lout <<
"linkchan: << cack" << endl;
100 lout <<
"linkchan: << ctrm" << endl;
An array of BufferStores.
bool empty() const
Checks if this BufferArray is empty.
BufferStore pop(void)
Removes the first BufferStore.
A generic container for an array of bytes.
uint16_t getWord(long pos=0) const
Retrieves the word at index pos.
void addWord(int w)
Appends a word to the content of this instance.
void ncpDoRegisterAck(int ch, const char *name)
virtual const char * getNcpRegisterName()=0
void setNcpChannel(int chan)
void terminateWhenAsked()
void ncpSend(BufferStore &a)
BufferArray registerStack
const char * getNcpRegisterName()
LinkChannel(NCP *ncpController, int ncpChannel=-1)
void ncpConnectTerminate()
void ncpDataCallback(BufferStore &a)
#define LINKCHAN_DEBUG_DUMP
#define LINKCHAN_DEBUG_LOG