a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Devices:
 printer.device
  --background--
  CMD_FLUSH
  CMD_INVALID
  CMD_RESET
  CMD_START
  CMD_STOP
  CMD_WRITE
  CallErrHook
  PBothReady
  PQuery
  PRD_DUMPRPORT
  PRD_DUMPRPORTTAGS
  PRD_EDITPREFS
  PRD_PRTCOMMAND
  PRD_QUERY
  PRD_RAWWRITE
  PRD_READPREFS
  PRD_SETERRHOOK
  PRD_WRITEPREFS
  PRead
  PWrite
Include
GuruMeditation
Docs » Autodocs » printer.device » PRead

NAME

	PRead - internal read from printer port

SYNOPSIS

	error = (*PrinterData->pd_PRead)(buffer, length, tv);
D0
LONG PRead(UBYTE *, ULONG *, struct timeval *);

FUNCTION

	PRead reads a buffer of data from the printer port. The variable
length points to is set to the actual number of read bytes.
tv points to a struct timeval or is NULL in which case the default
time is PrinterExtendedData.ped_TimeoutSecs. If the time of tv
ellapes before the CMD_READ at the printer port is done two different
things may happen: If at least one char is read PRead() returns. If
no char is read but PQuery returns a value larger 0 the read is
repeated with that length to read all outstanding data.

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Scoopex

SCX
TBL
SPB
AFL

Comments:

$VER: d0.se 1.14 Copyright © 2011-2023 Tobias Geijersson support at d0 dot se