65 if (!strcmp(
a.getString(0),
"Ok"))
117 cerr <<
"WPRT ERR:" <<
a << endl;
121 if ((
a.getByte(0) != 0) || (
a.getWord(1) != 2))
133 cerr <<
"WPRT ERR:" << buf << endl;
144 cerr <<
"WPRT ERR:" <<
a << endl;
A generic container for an array of bytes.
Wrapper class featuring range-checking and string representation of enumerated values.
A class for dealing with sockets.
bool closeSocket(void)
Closes the connection.
virtual bool reconnect()
Reopens the connection after closing it.
int getBufferStore(BufferStore &a, bool wait=true)
Receive data into a BufferStore .
bool sendBufferStore(const BufferStore &a)
Sends data from a BufferStore .
Enum< RFSV::errs > cancelJob()
Cancels a running job.
Enum< RFSV::errs > getStatus()
Retrieves the current status of the connection.
bool sendCommand(enum commands cc, BufferStore &data)
Sends a command to the remote side.
void reset()
Initializes a connection to the remote machine.
TCPSocket * skt
The socket, used for communication with ncpd.
void reconnect()
Attempts to re-establish a remote connection by first closing the socket, then connecting again to th...
Enum< RFSV::errs > status
The current status of the connection.
commands
The possible commands.
bool stop()
Stops the WPRT server.
Enum< RFSV::errs > getResponse(BufferStore &data)
~wprt()
Virtual destructor.
const char * getConnectName()
Enum< RFSV::errs > initPrinter()
Init Printer.
Enum< RFSV::errs > getData(BufferStore &buf)
Get Print Data.