1
zrg
2024-11-19 c8ea1579594ac9f7adf519d8ec9ee868d8fec54f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.Collections.Generic;
using System.Text;
 
namespace Taobao.Top.Link.Endpoints
{
    public class MessageType
    {
        public const short CONNECT = 0;
        public const short CONNECTACK = 1;
        public const short SEND = 2;
        public const short SENDACK = 3;
 
        public class HeaderType
        {
            public const short EndOfHeaders = 0;
            public const short Custom = 1;
            public const short StatusCode = 2;
            public const short StatusPhrase = 3;
            public const short Flag = 4;
            public const short Token = 5;
        }
 
        public class ValueFormat
        {
            public const byte Void = 0;// act as null
            public const byte CountedString = 1;
            public const byte Byte = 2;
            public const byte Int16 = 3;
            public const byte Int32 = 4;
            public const byte Int64 = 5;
            public const byte Date = 6;
            public const byte ByteArray = 7;
        }
    }
}