|
plptools
|
#include <ncp.h>

Public Member Functions | |
| NCP (const char *fname, int baud, bool noDSRCheck, unsigned short verbose, const int cancellationFd, NCPStatusCallback statusCallback, void *context) | |
| ~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) |
| 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 = false |
| short int | protocolVersion |
| LinkChannel * | lChan |
| int | maxChannels |
| std::vector< PcServer > | pcServers |
| int | lastSentChannel |
| NCPStatusCallback | statusCallback_ |
| void * | callbackContext_ |
Friends | |
| class | Link |
|
private |
|
private |
| NCP::NCP | ( | const char * | fname, |
| int | baud, | ||
| bool | noDSRCheck, | ||
| unsigned short | verbose, | ||
| const int | cancellationFd, | ||
| NCPStatusCallback | statusCallback, | ||
| void * | context | ||
| ) |
|
private |
|
private |
|
private |
|
private |
| void NCP::registerPcServer | ( | TCPSocket * | skt, |
| const char * | name | ||
| ) |
| void NCP::send | ( | int | channel, |
| BufferStore & | a | ||
| ) |
|
private |
|
private |
|
private |