HI的第8和第7位 |
意义 |
00(0x00) |
以Null(0x00)结尾的的Unicode文字。2个字节的无符号整数长度前缀。 |
01(0x40) |
Byte块,2个字节的无符号整数前缀。 |
10(0x80) |
1Byte容量。 |
11(0xC0) |
4Byte容量,以高位先传输为原则。 |
HI |
Header名称 |
描述 |
0xC0 |
Count |
连接中用于指名对象的数量。 |
0x01 |
Name |
对象的名字。一般为文件名。 |
0x42 |
Type |
对象的类型。例如text,html,binary,manufacture specific |
0x44 0xC4 |
Time |
时间戳。ISO 8601版本 时间戳。4Byte版本(用于兼容) |
0x05 |
Description |
对对象的文本描述 |
0x46 |
Target |
操作的目的服务名 |
0x47 |
HTTP |
一个HTTP1.x头 |
0x48 |
Body |
对象的一部分 |
0x49 |
End of body |
对象的最后一部分 |
0x4A |
Who |
OBEX Application标识,用于表明是否是同一个应用。 |
0xCB |
Connection ID |
用于OBEX多路连接的标识 |
0x4C |
App.Parameters |
扩展的应用层请求和回复信息 |
0x4D |
Auth.Challenge |
Authentication digest-challenge |
0x4E |
Auth.Response |
Authentication digest-response |
0x4F |
Object Class |
对象的OBEX对象类 |
0x10 to 0x2F |
Reserved |
保留 |
0x30 to 0x3F |
User defined |
用户自定义的。 |
Byte 0 |
Byte 1,2 |
Byte 3 to n |
操作码(opcode)
|
Packet Length
(包长度)
|
Headers
或请求信息
|
Byte 0 |
Byte 1,2 |
Byte 3 to n |
Response Code
(返回值)
|
Response Length
(回应长度)
|
ResponseData
回应的数据
|
Opcode(w/high bit set) |
定义 |
意义 |
0x80 *
|
Connect
|
连接
|
0x81 *
|
Disconnect
|
断开连接
|
0x02(0x82)
|
Put
|
发送一个对象
|
0x03(0x83)
|
Get
|
取得一个对象
|
0x04(0x84)
|
Reserved
|
保留的
|
0x85 *
|
SetPath
|
设置路径
|
0xFF *
|
Abort
|
取消当前的操作
|
0x06
到0x0F
|
Reserved
|
作为扩展保留
|
0x10
到0x1F
|
User definable
|
用户自定义的
|
ResponseCode |
定义 |
0x10(0x90)
|
Continue
(继续)
|
0x20
(0xA0
)
|
OK
,Success
|
0x40(0xC0)
|
Bad Request
(服务端不明白Request
)
|
0x41(0xC1)
|
Unauthorized
(未授权的)
|
0x43(0xC3)
|
Fobidden
(禁止——服务器明白Request
,但拒绝)
|
0x44(0xC4)
|
Not Found
(未找到)
|
Byte 0 |
Byte 1,2 |
Byte 3 |
Byte 4 |
Byte 5,6 |
Byte 7 to n |
0x80
|
包长度
|
OBEX
版本
|
标志
|
最大OBEX
包长度
|
可选Header
|
Byte 0 |
Byte 1,2 |
Byte 3 |
Byte 4 |
Byte 5,6 |
Byte 7 to n |
ResponseCode
|
包长度
|
OBEX
版本
|
标志
|
最大OBEX
包长度
|
可选Header |
Byte 0 |
Bytes 1,2 |
Bytes 3 to n |
0x81
|
包长度
|
可选Header
|
Byte 0 |
Bytes 1,2 |
Bytes 3 to n |
0x02(
当FinalBit
设置时为0x82)
|
PacketLength
包长度
|
一组Header
|
Byte 0 |
Bytes 1,2 |
Bytes 3 to n |
ResponseCode
(要求继续为0x90
;成功为0xA0
)
|
包长度
|
可选Header
|
Byte 0 |
Bytes 1,2 |
Bytes 3 to n |
0x03
|
包长度
|
一组Header
|
Byte 0 |
Bytes 1,2 |
Bytes 3 to n |
Response Code
|
包长度
|
可选Header
|
Byte 0 |
Bytes 1,2 |
Bytes 3 to n |
0xFF
|
包长度
|
可选Header
|
Byte 0 |
Bytes 1,2 |
Byte 3 |
Byte 4 |
Bytes 5 to n |
0x85
|
包长度
|
Flags
|
Constants
(常数)
|
可选Header
|
Byte 0 |
Bytes 1,2 |
Bytes 3 to n |
ResponseCode
|
包长度
|
可选Response Header
|