1 // Written in the D programming language. 2 3 /** 4 Constants for representing sizes of all messages (measured in StyxObject's). 5 6 Copyright: LightHouse Software, 2021 7 License: $(HTTP https://github.com/aquaratixc/ESL-License, Experimental Software License 1.0). 8 Authors: Oleg Bakharev, 9 Ilya Pertsev 10 */ 11 module styx2000.protoconst.sizes; 12 13 /// size of messages in StyxObject's (in SOBJ's) 14 enum STYX_MESSAGE_SIZE 15 { 16 /// Version message size (client) 17 T_VERSION = 5, 18 /// Version message size(server) 19 R_VERSION = 5, 20 /// Auth message size (client) 21 T_AUTH = 6, 22 /// Auth message size (server) 23 R_AUTH = 4, 24 /// Attach message size (client) 25 T_ATTACH = 7, 26 /// Attach message size (server) 27 R_ATTACH = 4, 28 /// Error message size (only server, for client analog isn't exists) 29 R_ERROR = 4, 30 /// Flush message size (client) 31 T_FLUSH = 4, 32 /// Flush message size (server) 33 R_FLUSH = 3, 34 /// Walk message size (client) 35 T_WALK = 6, 36 /// Walk message size (server) 37 R_WALK = 4, 38 /// Open message size (client) 39 T_OPEN = 5, 40 /// Open message size (server) 41 R_OPEN = 5, 42 /// Create message size (client) 43 T_CREATE = 7, 44 /// Create message size (server) 45 R_CREATE = 5, 46 /// Read message size (client) 47 T_READ = 6, 48 /// Read message size (server) 49 R_READ = 5, 50 /// Write message size (client) 51 T_WRITE = 7, 52 /// Write message size (server) 53 R_WRITE = 4, 54 /// Clunk message size (client) 55 T_CLUNK = 4, 56 /// Clunk message size (server) 57 R_CLUNK = 3, 58 /// Remove message size (client) 59 T_REMOVE = 4, 60 /// Remove message size (server) 61 R_REMOVE = 3, 62 /// Stat message size (client) 63 T_STAT = 4, 64 /// Stat message size (server) 65 R_STAT = 4, 66 /// Wstat message size (client) 67 T_WSTAT = 5, 68 /// Wstat message size (server) 69 R_WSTAT = 3, 70 }