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 31 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 38 of file channel.cc.

Member Function Documentation

◆ getNcpChannel()

int Channel::getNcpChannel ( void  )

Definition at line 100 of file channel.cc.

◆ getNcpConnectName()

const char * Channel::getNcpConnectName ( )

Definition at line 116 of file channel.cc.

◆ getNcpRegisterName()

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

Implemented in LinkChannel, and SocketChannel.

◆ getVerbose()

short int Channel::getVerbose ( )

Definition at line 112 of file channel.cc.

◆ ncpConnect()

void Channel::ncpConnect ( )

Definition at line 60 of file channel.cc.

◆ ncpConnectAck()

virtual void Channel::ncpConnectAck ( )
pure virtual

Implemented in LinkChannel, and SocketChannel.

◆ ncpConnectNak()

virtual void Channel::ncpConnectNak ( )
pure virtual

Implemented in LinkChannel, and SocketChannel.

◆ ncpConnectTerminate()

virtual void Channel::ncpConnectTerminate ( )
pure virtual

Implemented in LinkChannel, and SocketChannel.

◆ ncpDataCallback()

virtual void Channel::ncpDataCallback ( BufferStore a)
pure virtual

Implemented in LinkChannel, and SocketChannel.

◆ ncpDisconnect()

void Channel::ncpDisconnect ( )

Definition at line 72 of file channel.cc.

◆ ncpDoRegisterAck()

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

Definition at line 68 of file channel.cc.

◆ ncpFindPcServer()

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

Definition at line 76 of file channel.cc.

◆ ncpGetSpeed()

int Channel::ncpGetSpeed ( )

Definition at line 88 of file channel.cc.

◆ ncpProtocolVersion()

short int Channel::ncpProtocolVersion ( )

Definition at line 92 of file channel.cc.

◆ ncpRegister()

void Channel::ncpRegister ( )

Definition at line 64 of file channel.cc.

◆ ncpRegisterAck()

virtual void Channel::ncpRegisterAck ( )
pure virtual

Implemented in LinkChannel, and SocketChannel.

◆ ncpRegisterPcServer()

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

Definition at line 80 of file channel.cc.

◆ ncpSend()

void Channel::ncpSend ( BufferStore a)

Definition at line 44 of file channel.cc.

◆ ncpUnregisterPcServer()

void Channel::ncpUnregisterPcServer ( PcServer server)

Definition at line 84 of file channel.cc.

◆ newNcpController()

void Channel::newNcpController ( NCP ncpController)

Definition at line 104 of file channel.cc.

◆ setNcpChannel()

void Channel::setNcpChannel ( int  chan)

Definition at line 96 of file channel.cc.

◆ setNcpConnectName()

void Channel::setNcpConnectName ( const char *  name)

Definition at line 120 of file channel.cc.

◆ setVerbose()

void Channel::setVerbose ( short int  _verbose)

Definition at line 108 of file channel.cc.

◆ shouldTerminate()

bool Channel::shouldTerminate ( ) const

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

Definition at line 48 of file channel.cc.

◆ terminateWhenAsked()

void Channel::terminateWhenAsked ( )

Definition at line 54 of file channel.cc.

Member Data Documentation

◆ _terminate

bool Channel::_terminate
private

Definition at line 76 of file channel.h.

◆ connectName

const char* Channel::connectName
protected

Definition at line 71 of file channel.h.

◆ ncpChannel

int Channel::ncpChannel
private

Definition at line 75 of file channel.h.

◆ ncpController

NCP* Channel::ncpController
private

Definition at line 74 of file channel.h.

◆ verbose

short int Channel::verbose
protected

Definition at line 70 of file channel.h.


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