1 | <?php |
||
7 | abstract class IProto |
||
8 | { |
||
9 | const CODE = 0x00; |
||
10 | const SYNC = 0x01; |
||
11 | const SPACE_ID = 0x10; |
||
12 | const INDEX_ID = 0x11; |
||
13 | const LIMIT = 0x12; |
||
14 | const OFFSET = 0x13; |
||
15 | const ITERATOR = 0x14; |
||
16 | const KEY = 0x20; |
||
17 | const TUPLE = 0x21; |
||
18 | const FUNCTION_NAME = 0x22; |
||
19 | const USER_NAME = 0x23; |
||
20 | const SERVER_UUID = 0x24; |
||
21 | const CLUSTER_UUID = 0x25; |
||
22 | const VCLOCK = 0x26; |
||
23 | const EXPR = 0x27; |
||
24 | const DATA = 0x30; |
||
25 | const ERROR = 0x31; |
||
26 | |||
27 | const GREETING_SIZE = 128; |
||
28 | const LENGTH_SIZE = 5; |
||
29 | |||
30 | /** |
||
31 | * @param string $greeting |
||
32 | * |
||
33 | * @return string A session salt |
||
34 | * |
||
35 | * @throws Exception |
||
36 | */ |
||
37 | 70 | public static function parseGreeting($greeting) |
|
51 | } |
||
52 |