plptools
Loading...
Searching...
No Matches
channel Class Referenceabstract

#include <channel.h>

Inheritance diagram for channel:
Collaboration diagram for channel:

Public Member Functions

 channel (NCP *ncpController)
 
virtual ~channel ()=0
 
void newNcpController (NCP *ncpController)
 
void setNcpChannel (int chan)
 
int getNcpChannel (void)
 
void ncpSend (bufferStore &a)
 
void setVerbose (short int _verbose)
 
short int getVerbose ()
 
virtual void ncpDataCallback (bufferStore &a)=0
 
virtual const char * getNcpRegisterName ()=0
 
void ncpConnect ()
 
void ncpRegister ()
 
void ncpDoRegisterAck (int ch, const char *name)
 
virtual void ncpConnectAck ()=0
 
virtual void ncpConnectTerminate ()=0
 
virtual void ncpConnectNak ()=0
 
virtual void ncpRegisterAck ()=0
 
void ncpDisconnect ()
 
short int ncpProtocolVersion ()
 
const char * getNcpConnectName ()
 
void setNcpConnectName (const char *)
 
bool shouldTerminate () const
 Indicates that the channel needs termination and should be cleaned-up. More...
 
void terminateWhenAsked ()
 
PcServerncpFindPcServer (const char *name)
 
void ncpRegisterPcServer (TCPSocket *skt, const char *name)
 
void ncpUnregisterPcServer (PcServer *server)
 
int ncpGetSpeed ()
 

Protected Attributes

short int verbose
 
const char * connectName
 

Private Attributes

NCPncpController
 
int ncpChannel
 
bool _terminate
 

Detailed Description

Definition at line 32 of file channel.h.

Constructor & Destructor Documentation

◆ channel()

channel::channel ( NCP ncpController)

Definition at line 30 of file channel.cc.

◆ ~channel()

channel::~channel ( )
pure virtual

Definition at line 39 of file channel.cc.

Member Function Documentation

◆ getNcpChannel()

int channel::getNcpChannel ( void  )

Definition at line 123 of file channel.cc.

◆ getNcpConnectName()

const char * channel::getNcpConnectName ( )

Definition at line 147 of file channel.cc.

◆ getNcpRegisterName()

virtual const char * channel::getNcpRegisterName ( )
pure virtual

Implemented in linkChan, and SocketChannel.

◆ getVerbose()

short int channel::getVerbose ( )

Definition at line 141 of file channel.cc.

◆ ncpConnect()

void channel::ncpConnect ( )

Definition at line 63 of file channel.cc.

◆ ncpConnectAck()

virtual void channel::ncpConnectAck ( )
pure virtual

Implemented in linkChan, and SocketChannel.

◆ ncpConnectNak()

virtual void channel::ncpConnectNak ( )
pure virtual

Implemented in linkChan, and SocketChannel.

◆ ncpConnectTerminate()

virtual void channel::ncpConnectTerminate ( )
pure virtual

Implemented in linkChan, and SocketChannel.

◆ ncpDataCallback()

virtual void channel::ncpDataCallback ( bufferStore a)
pure virtual

Implemented in linkChan, and SocketChannel.

◆ ncpDisconnect()

void channel::ncpDisconnect ( )

Definition at line 81 of file channel.cc.

◆ ncpDoRegisterAck()

void channel::ncpDoRegisterAck ( int  ch,
const char *  name 
)

Definition at line 75 of file channel.cc.

◆ ncpFindPcServer()

PcServer * channel::ncpFindPcServer ( const char *  name)

Definition at line 87 of file channel.cc.

◆ ncpGetSpeed()

int channel::ncpGetSpeed ( )

Definition at line 105 of file channel.cc.

◆ ncpProtocolVersion()

short int channel::ncpProtocolVersion ( )

Definition at line 111 of file channel.cc.

◆ ncpRegister()

void channel::ncpRegister ( )

Definition at line 69 of file channel.cc.

◆ ncpRegisterAck()

virtual void channel::ncpRegisterAck ( )
pure virtual

Implemented in linkChan, and SocketChannel.

◆ ncpRegisterPcServer()

void channel::ncpRegisterPcServer ( TCPSocket skt,
const char *  name 
)

Definition at line 93 of file channel.cc.

◆ ncpSend()

void channel::ncpSend ( bufferStore a)

Definition at line 45 of file channel.cc.

◆ ncpUnregisterPcServer()

void channel::ncpUnregisterPcServer ( PcServer server)

Definition at line 99 of file channel.cc.

◆ newNcpController()

void channel::newNcpController ( NCP ncpController)

Definition at line 129 of file channel.cc.

◆ setNcpChannel()

void channel::setNcpChannel ( int  chan)

Definition at line 117 of file channel.cc.

◆ setNcpConnectName()

void channel::setNcpConnectName ( const char *  name)

Definition at line 153 of file channel.cc.

◆ setVerbose()

void channel::setVerbose ( short int  _verbose)

Definition at line 135 of file channel.cc.

◆ shouldTerminate()

bool channel::shouldTerminate ( ) const

Indicates that the channel needs termination and should be cleaned-up.

Definition at line 51 of file channel.cc.

◆ terminateWhenAsked()

void channel::terminateWhenAsked ( )

Definition at line 57 of file channel.cc.

Member Data Documentation

◆ _terminate

bool channel::_terminate
private

Definition at line 77 of file channel.h.

◆ connectName

const char* channel::connectName
protected

Definition at line 72 of file channel.h.

◆ ncpChannel

int channel::ncpChannel
private

Definition at line 76 of file channel.h.

◆ ncpController

NCP* channel::ncpController
private

Definition at line 75 of file channel.h.

◆ verbose

short int channel::verbose
protected

Definition at line 71 of file channel.h.


The documentation for this class was generated from the following files: