|
plptools
|
A factory for automatically instantiating the correct protocol variant depending on the connected Psion. More...
#include <rpcsfactory.h>

Public Types | |
| enum | errs { FACERR_NONE = 0 , FACERR_COULD_NOT_SEND = 1 , FACERR_AGAIN = 2 , FACERR_NOPSION = 3 , FACERR_PROTVERSION = 4 , FACERR_NORESPONSE = 5 } |
| The known errors which can happen during create . More... | |
Public Member Functions | |
| rpcsfactory (TCPSocket *skt) | |
| Constructs a rpcsfactory. More... | |
| virtual rpcs * | create (bool reconnect) |
| Creates a new rpcs instance. More... | |
| virtual Enum< errs > | getError () |
| Retrieve an error code. More... | |
Private Attributes | |
| TCPSocket * | skt |
| The socket to be used for connecting to the ncpd daemon. More... | |
| Enum< errs > | err |
A factory for automatically instantiating the correct protocol variant depending on the connected Psion.
Definition at line 32 of file rpcsfactory.h.
| enum rpcsfactory::errs |
The known errors which can happen during create .
| Enumerator | |
|---|---|
| FACERR_NONE | |
| FACERR_COULD_NOT_SEND | |
| FACERR_AGAIN | |
| FACERR_NOPSION | |
| FACERR_PROTVERSION | |
| FACERR_NORESPONSE | |
Definition at line 38 of file rpcsfactory.h.
| rpcsfactory::rpcsfactory | ( | TCPSocket * | skt | ) |
Constructs a rpcsfactory.
| skt | The socket to be used for connecting to the ncpd daemon. |
Definition at line 41 of file rpcsfactory.cc.
|
virtual |
Creates a new rpcs instance.
| reconnect | Set to true, if automatic reconnect should be performed on failure. |
Definition at line 47 of file rpcsfactory.cc.
Retrieve an error code.
Definition at line 72 of file rpcsfactory.h.
Definition at line 80 of file rpcsfactory.h.
|
private |
The socket to be used for connecting to the ncpd daemon.
Definition at line 79 of file rpcsfactory.h.