Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nnetpsrrp()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETPSRRP()
 Requests a remote printer.s configuration information
------------------------------------------------------------------------------
 Syntax

     NNETPSRRP(<cPServer>,<nPrinter>,[<cServer>|<nConId>])
        --> aInfo

     Netware: 2.2 and 3.11

 Arguments

     <cPServer>  Designates the name of the print server that is
     accessed.

     <nPrinter>  Designates the number of the printer on <cPServer>.
     Values between 0 and 15 are possible.

     <cServer>  Designates the name of the file server used to access
     <cPServer>.  The print server checks login information on <cServer>.
     Therefore, the access rights can depend on the specified file server.
     Your workstation must be attached to <cServer>.

     <nConId>  Designates the connection ID of your workstation on
     <cServer>.

 Returns

     NNETPSQL() returns a one-dimensional array that contains configuration
     information about the passed printer.  The elements of the array are
     defined in the table that follows.

     Table 27.13:  NNETPSRRP() Array Structure
     ------------------------------------------------------------------------
     Position     Metasymbol   CTPS.CH      Definition 
     ------------------------------------------------------------------------
     1            nType        RRP_TYPE     Printer type
     2            lInt         RRP_INT      Use interrupts
     3            nIRQ         RRP_IRQ      IRQ number
     4            nBuf         RRP_BUF      Rec. number of 512 byte buffers
     5            lXon         RRP_XON      Use Xon/XOff protocol
     6            nBaud        RRP_BAUD     Baud rate
     7            nData        RRP_DATA     Data bits
     8            nStop        RRP_STOP     Stop bits
     9            nParity      RRP_PARITY   Parity
     10           nSocket      RRP_SOCKET   Socket number for communication
                                            with print server
     ------------------------------------------------------------------------

     For a list of possible remote printers, see the function NNETPSARP().
     The elements RRP_XON, RRP_BAUD, RRP_DATA, RRP_STOP, and RRP_PARITY are
     useful only if the remote printer is configured as serial printer.  The
     baud rate, stop bits, and parity are coded as numeric values:  0=300
     baud, 1=600 baud, 2=1200 baud, 3=2400 baud, 4=4800 baud, 5=9600 baud;
     0=0 stop bits, 1=1,5 stop bits, 2=1 stop bit; parity: 0=no, 1=even,
     2=odd.

     If an error occurs, the function returns an empty array.

 Description

     NOVELL NET PRINT SERVER REQUEST REMOTE PRINTER
     Netware print servers are able to service printers that are connected to
     a workstation (remote printers).  NNETPSRRP() allows you to request a
     remote printer from a print server to emulate a remote printer from
     within a CA-Clipper application (see the sample program RPRINTER.PRG).

     For the emulation of a remote printer, the most important information
     within the return value is the socket number (RRP_SOCKET).  For the
     following setup of an SPX session, this socket number must be passed as
     target socket.

 Example

     You can find a detailed example for the description of NNETPSRRP() on
     the CA-Clipper Tools disks under RPRINTER.PRG.

See Also: NNETPSARP()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson