plptools
Loading...
Searching...
No Matches
SocketChannel Class Reference

#include <socketchannel.h>

Inheritance diagram for SocketChannel:
Collaboration diagram for SocketChannel:

Public Member Functions

 SocketChannel (TCPSocket *socket, NCP *ncp)
 
virtual ~SocketChannel ()
 
void ncpDataCallback (bufferStore &a)
 
const char * getNcpRegisterName ()
 
void ncpConnectAck ()
 
void ncpRegisterAck ()
 
void ncpDoRegisterAck (int)
 
void ncpConnectTerminate ()
 
void ncpConnectNak ()
 
bool isConnected () const
 
void socketPoll ()
 
- Public Member Functions inherited from channel
 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 ()
 

Private Types

enum  protocolVersionType { PV_SERIES_5 = 6 , PV_SERIES_3 = 3 }
 

Private Member Functions

bool ncpCommand (bufferStore &a)
 

Private Attributes

TCPSocketsocket_
 
char * registerName_
 
bool isConnected_
 
int connectTry_
 
int connectTryTimestamp_
 

Additional Inherited Members

- Protected Attributes inherited from channel
short int verbose
 
const char * connectName
 

Detailed Description

Definition at line 28 of file socketchannel.h.

Member Enumeration Documentation

◆ protocolVersionType

Enumerator
PV_SERIES_5 
PV_SERIES_3 

Definition at line 44 of file socketchannel.h.

Constructor & Destructor Documentation

◆ SocketChannel()

SocketChannel::SocketChannel ( TCPSocket socket,
NCP ncp 
)

Definition at line 34 of file socketchannel.cc.

◆ ~SocketChannel()

SocketChannel::~SocketChannel ( )
virtual

Definition at line 42 of file socketchannel.cc.

Member Function Documentation

◆ getNcpRegisterName()

const char * SocketChannel::getNcpRegisterName ( )
virtual

Implements channel.

Definition at line 57 of file socketchannel.cc.

◆ isConnected()

bool SocketChannel::isConnected ( ) const

Definition at line 247 of file socketchannel.cc.

◆ ncpCommand()

bool SocketChannel::ncpCommand ( bufferStore a)
private

Definition at line 62 of file socketchannel.cc.

◆ ncpConnectAck()

void SocketChannel::ncpConnectAck ( )
virtual

Implements channel.

Definition at line 133 of file socketchannel.cc.

◆ ncpConnectNak()

void SocketChannel::ncpConnectNak ( )
virtual

Implements channel.

Definition at line 153 of file socketchannel.cc.

◆ ncpConnectTerminate()

void SocketChannel::ncpConnectTerminate ( )
virtual

Implements channel.

Definition at line 141 of file socketchannel.cc.

◆ ncpDataCallback()

void SocketChannel::ncpDataCallback ( bufferStore a)
virtual

Implements channel.

Definition at line 50 of file socketchannel.cc.

◆ ncpDoRegisterAck()

void SocketChannel::ncpDoRegisterAck ( int  )
inline

Definition at line 37 of file socketchannel.h.

◆ ncpRegisterAck()

void SocketChannel::ncpRegisterAck ( )
virtual

Implements channel.

Definition at line 148 of file socketchannel.cc.

◆ socketPoll()

void SocketChannel::socketPoll ( )

Definition at line 163 of file socketchannel.cc.

Member Data Documentation

◆ connectTry_

int SocketChannel::connectTry_
private

Definition at line 50 of file socketchannel.h.

◆ connectTryTimestamp_

int SocketChannel::connectTryTimestamp_
private

Definition at line 51 of file socketchannel.h.

◆ isConnected_

bool SocketChannel::isConnected_
private

Definition at line 49 of file socketchannel.h.

◆ registerName_

char* SocketChannel::registerName_
private

Definition at line 48 of file socketchannel.h.

◆ socket_

TCPSocket* SocketChannel::socket_
private

Definition at line 47 of file socketchannel.h.


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