Einzelnen Beitrag anzeigen

Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.768 Beiträge
 
Delphi 10.4 Sydney
 
#6

AW: idTCPServer LPR-Druck abfangen

  Alt 17. Mai 2011, 13:31
Hallo,

baust Du einen Spooler?

Wie versuchst Du denn zur Zeit das Datenende zu detektieren?

Hier noch ein Auszug aus der entsprechenden RFC1179:
Zitat:
6.3 03 - Receive data file

+----+-------+----+------+----+
| 03 | Count | SP | Name | LF |
+----+-------+----+------+----+
Command code - 3
Operand 1 - Number of bytes in data file
Operand 2 - Name of data file

The data file may contain any 8 bit values at all. The total number
of bytes in the stream may be sent as the first operand, otherwise
the field should be cleared to 0. The name of the data file should
start with ASCII "dfA".
This should be followed by a three digit job
number. The job number should be followed by the host name which has
constructed the data file. Interpretation of the contents of the
data file is determined by the contents of the corresponding control
file. If a data file length has been specified, the next "Operand 1"
octets over the same TCP connection are the intended contents of the
data file. In this case, once all of the contents have been
delivered, an octet of zero bits is sent as an indication that the
file being sent is complete
. A second level of acknowledgement
processing must occur at this point.
Grüße
Klaus
Klaus
  Mit Zitat antworten Zitat