Add constants

This commit is contained in:
2020-10-28 16:56:38 +01:00
parent 3969d2844b
commit da8355f4ea
2 changed files with 49 additions and 1 deletions

44
messages.go Normal file
View 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
}