|
plptools
|
Remote Print services via PLP. More...
#include <wprt.h>

Public Member Functions | |
| wprt (TCPSocket *) | |
| ~wprt () | |
| Virtual destructor. More... | |
| void | reset () |
| Initializes a connection to the remote machine. More... | |
| void | reconnect () |
| Attempts to re-establish a remote connection by first closing the socket, then connecting again to the ncpd daemon and finally calling reset. More... | |
| Enum< rfsv::errs > | getStatus () |
| Retrieves the current status of the connection. More... | |
| Enum< rfsv::errs > | getData (bufferStore &buf) |
| Get Print Data. More... | |
| Enum< rfsv::errs > | initPrinter () |
| Init Printer. More... | |
| Enum< rfsv::errs > | cancelJob () |
| Cancels a running job. More... | |
| bool | stop () |
| Stops the WPRT server. More... | |
Protected Types | |
| enum | commands { WPRT_INIT = 0x00 , WPRT_GET = 0xf0 , WPRT_CANCEL = 0xf1 , WPRT_STOP = 0xff } |
| The possible commands. More... | |
Protected Member Functions | |
| bool | sendCommand (enum commands cc, bufferStore &data) |
| Sends a command to the remote side. More... | |
| Enum< rfsv::errs > | getResponse (bufferStore &data) |
| const char * | getConnectName () |
Protected Attributes | |
| TCPSocket * | skt |
| The socket, used for communication with ncpd. More... | |
| Enum< rfsv::errs > | status |
| The current status of the connection. More... | |
|
protected |
| Enum< rfsv::errs > wprt::cancelJob | ( | ) |
| Enum< rfsv::errs > wprt::getData | ( | bufferStore & | buf | ) |
|
protected |
| Enum< rfsv::errs > wprt::getStatus | ( | void | ) |
| Enum< rfsv::errs > wprt::initPrinter | ( | ) |
| void wprt::reconnect | ( | void | ) |
| void wprt::reset | ( | void | ) |
|
protected |
Sends a command to the remote side.
If communication fails, a reconnect is triggered and a second attempt to transmit the request is attempted. If that second attempt fails, the function returns an error an sets rpcs::status to E_PSI_FILE_DISC.
| cc | The command to execute on the remote side. |
| data | Additional data for this command. |
|
protected |
|
protected |