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

 ~wprt ()

~wprt

Virtual destructor.

void  reset ()

reset

Initializes a connection to the remote machine.

void  reconnect ()

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 ()

getStatus

Retrieves the current status of the connection.

Returns: The connection status.

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

getData

Get Print Data

Enum<rfsv::errs>  initPrinter ()

initPrinter

Init Printer

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

commands

[protected]

The possible commands.

ppsocket * skt

skt

[protected]

Enum<rfsv::errs> status

status

[protected]

bool  sendCommand (enum commands cc, bufferStore &data)

sendCommand

[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:
ccThe command to execute on the remote side.
dataAdditional data for this command.

Returns: true on success, false on failure.

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

getResponse

[protected]

const char * getConnectName ()

getConnectName

[protected]


Generated by: john on dianna on Tue Nov 6 19:50:47 2001, using kdoc 2.0a53.