background image
22
December 15, 1997
Protocol Encoding
22
Protocol Encoding
Release 6.4
X Version 11
5
Protocol Encoding
The following sections describe protocol encoding for X Print Extension Protocol requests, events, and
errors.
5.1
Request Protocol Encoding
PrintQueryVersion
PrintGetPrinterList
1
base
major im
1
0
minor opcode
2
1
request length
1
1
Reply
1
unused
2
CARD16
sequence number
4
0
reply length
2
CARD16
major-version
2
CARD16
minor-version
20
unused
1
base
major opcode
1
1
minor opcode
2
3+(nl+np + ll+lp)/4
request length
4
CARD32
printerNameLen
4
CARD32
localeLen
nl
STRING8
printer-name
np
BYTE
p=pad(nl)
ll
STRING8
locale
lp
BYTE
lp=pad(ll)
1
1
Reply
1
unused
2
CARD16
sequenceNumber