Add constants
This commit is contained in:
44
messages.go
Normal file
44
messages.go
Normal file
@@ -0,0 +1,44 @@
|
||||
package main
|
||||
|
||||
// References
|
||||
// https://tools.ietf.org/html/rfc8010
|
||||
// https://tools.ietf.org/html/rfc8011
|
||||
|
||||
// Defined atribute group tags
|
||||
const (
|
||||
beginAttributeGroupTag = 0x00
|
||||
operationAttributesTag = 0x01
|
||||
jobAttributesTag = 0x02
|
||||
endOfAttributesTag = 0x03
|
||||
printerAttributesTag = 0x04
|
||||
unsupportedAttributesTag = 0x05
|
||||
)
|
||||
|
||||
// Defined value tags
|
||||
// from rfc8010
|
||||
const (
|
||||
// Out of band
|
||||
unsupportedValueTag = 0x10
|
||||
unknownValueTag = 0x12
|
||||
noValueValueTag = 0x13
|
||||
// Integer values
|
||||
integerValueTag = 0x21
|
||||
booleanIntegerTag = 0x22
|
||||
enumValueTag = 0x23
|
||||
// Character string values
|
||||
textWithoutLanguagage = 0x41
|
||||
nameWithoutLanguagage = 0x42
|
||||
keyword = 0x44
|
||||
uri = 0x45
|
||||
uriScheme = 0x46
|
||||
charset = 0x47
|
||||
naturalLanguagage = 0x48
|
||||
mimeMediaType = 0x49
|
||||
memberAttrName = 0x4a
|
||||
)
|
||||
|
||||
type ippRequestHeader struct {
|
||||
versionNumber uint16
|
||||
operationId uint16
|
||||
requestId uint32
|
||||
}
|
||||
Reference in New Issue
Block a user