class wprt

Remote Print services via PLP More...

Definition#include <wprt.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Types

Protected Methods

Protected Members


Detailed Description

Remote Print services via PLP

 wprt (ppsocket *)

wprt ()

Virtual destructor.

void  reset ()

Initializes a connection to the remote machine.

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.

Enum<rfsv::errs>  getStatus ()

Retrieves the current status of the connection.

Returns: The connection status.

Enum<rfsv::errs>  getData (bufferStore &buf)

Get Print Data

Enum<rfsv::errs>  initPrinter ()

Init Printer

enum commands {WPRT_INIT = 0x0100, WPRT_GET = 0xf0f0, }

[protected]

The possible commands.

ppsocket * skt

[protected]

The socket, used for communication with ncpd.

Enum<rfsv::errs> status

[protected]

The current status of the connection.

bool  sendCommand (enum commands cc, bufferStore &data)

[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.

Parameters:

Returns: true on success, false on failure.

Enum<rfsv::errs>  getResponse (bufferStore &data)

[protected]

const char * getConnectName ()

[protected]


Generated by: felfert@floh.fe.think on Mon Jul 23 21:42:43 2001, using kdoc 2.0a40.