|
plptools
|
#include <ncp.h>

Public Member Functions | |
| NCP (const char *fname, int baud, unsigned short verbose, const int cancellationFd) | |
| ~NCP () | |
| int | connect (channel *c) |
| void | Register (channel *c) |
| void | RegisterAck (int, const char *) |
| void | disconnect (int channel) |
| void | send (int channel, bufferStore &a) |
| void | reset () |
| int | maxLinks () |
| bool | stuffToSend () |
| bool | hasFailed () |
| bool | gotLinkChannel () |
| PcServer * | findPcServer (const char *name) |
| void | registerPcServer (TCPSocket *skt, const char *name) |
| void | unregisterPcServer (PcServer *server) |
| void | setVerbose (unsigned short) |
| unsigned short | getVerbose () |
| short int | getProtocolVersion () |
| int | getSpeed () |
Private Types | |
| enum | c { MAX_LEN = 200 , LAST_MESS = 1 , NOT_LAST_MESS = 2 } |
| enum | interControllerMessageType { NCON_MSG_DATA_XOFF =1 , NCON_MSG_DATA_XON =2 , NCON_MSG_CONNECT_TO_SERVER =3 , NCON_MSG_CONNECT_RESPONSE =4 , NCON_MSG_CHANNEL_CLOSED =5 , NCON_MSG_NCP_INFO =6 , NCON_MSG_CHANNEL_DISCONNECT =7 , NCON_MSG_NCP_END =8 } |
| enum | protocolVersionType { PV_SERIES_5 = 6 , PV_SERIES_3 = 3 } |
Private Member Functions | |
| void | receive (bufferStore s) |
| int | getFirstUnusedChan () |
| bool | isValidChannel (int) |
| void | decodeControlMessage (bufferStore &buff) |
| void | controlChannel (int chan, enum interControllerMessageType t, bufferStore &command) |
| const char * | ctrlMsgName (unsigned char) |
Private Attributes | |
| Link * | l |
| unsigned short | verbose |
| channel ** | channelPtr |
| bufferStore * | messageList |
| int * | remoteChanList |
| bool | failed |
| short int | protocolVersion |
| linkChan * | lChan |
| int | maxChannels |
| std::vector< PcServer > | pcServers |
| int | lastSentChannel |
Friends | |
| class | Link |
|
private |
|
private |
| NCP::NCP | ( | const char * | fname, |
| int | baud, | ||
| unsigned short | verbose, | ||
| const int | cancellationFd | ||
| ) |
|
private |
|
private |
|
private |
|
private |
| void NCP::registerPcServer | ( | TCPSocket * | skt, |
| const char * | name | ||
| ) |
| void NCP::send | ( | int | channel, |
| bufferStore & | a | ||
| ) |
|
private |