Changeset 9facdf2
- Timestamp:
- 12/11/08 20:12:34 (3 years ago)
- Branches:
- master
- Children:
- 9ff668
- Parents:
- 37b7a9
- git-author:
- Erik Ekman <yarrick@…> (12/11/08 20:12:34)
- git-committer:
- Erik Ekman <erik@…> (02/04/12 20:33:58)
- Location:
- doc
- Files:
-
- 2 edited
-
proto_00000402.txt (modified) (1 diff)
-
proto_00000403.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
doc/proto_00000402.txt
r05fdfb r9facdf2 46 46 L = Last fragment in packet flag 47 47 48 First 4 bits coded as hex in ASCII.48 First byte is the header, 4 bits coded as hex in ASCII. 49 49 Followed by data encoded with Base32. 50 50 51 51 Ping: 52 Command = 0x04, User = userid53 52 Client sends: 54 Only a CMC 53 First byte p or P 54 Rest encoded with Base32: 55 1 byte userid 56 CMC 55 57 56 The server response sto Ping and Data packets is a DNS NULL type response:58 The server response to Ping and Data packets is a DNS NULL type response: 57 59 If server has nothing to send, data length is 0 bytes. 58 60 If server has a packet to send, data length is set and the data is a full raw -
doc/proto_00000403.txt
r25018c r9facdf2 40 40 First byte s or S 41 41 One byte ASCII digit, meaning userid 42 One byte ASCII digit, with value 5 or 6, representing number of bits per byte in encoding 42 One byte ASCII digit, with value 5 or 6, representing number of raw 43 bits per encoded byte 43 44 Server sends: 44 Name of codec if accepted. After this all upstream data packets must be encoded with the new codec. 45 Name of codec if accepted. After this all upstream data packets must 46 be encoded with the new codec. 45 47 BADCODEC if not accepted. Client must then revert to Base32 46 48 47 49 Data: 48 Data header:49 321 050 +--- +-+51 |UUU |L|52 +--- +-+50 Upstream data header (encoded as 4 bytes Base32): 51 4321 0 432 10 43 210 4321 0 52 +----+-+---+--+--+---+----+-+ 53 |UUUU|L|SSS|FF|FF|DDD|GGGG|C| 54 +----+-+---+--+--+---+----+-+ 53 55 54 UUU = Userid 56 Downstream data header: 57 7 654 3210 765 4321 0 58 +-+---+----+---+----+-+ 59 |L|SSS|FFFF|DDD|GGGG|C| 60 +-+---+----+---+----+-+ 61 62 UUUU = Userid 55 63 L = Last fragment in packet flag 64 SSS = Upstream packet sequence number 65 FFFF = Upstream fragment number 66 DDD = Downstream packet sequence number 67 GGGG = Downstream fragment number 68 C = Compression enabled for this packet 56 69 57 First 4 bits coded as hex in ASCII. 58 Followed by data encoded with the chosen codec. 70 Upstream data packet starts with 4 bytes Base32 encoded header, then comes 71 the payload data, encoded with chosen codec. 72 73 Downstream data starts with 2 byte header. Then payload data, which may be 74 compressed. 59 75 60 76 Ping: 61 Command = 0x04, User = userid62 77 Client sends: 63 Only a CMC 78 First byte p or P 79 Rest encoded with Base32: 80 1 byte userid 81 CMC 64 82 65 The server response sto Ping and Data packets is a DNS NULL type response:83 The server response to Ping and Data packets is a DNS NULL type response: 66 84 If server has nothing to send, data length is 0 bytes. 67 If server has a packet to send, data length is set and the data is a full raw68 unencoded ip packet, prefixed with 32 bits tun data.85 If server has something to send, it will send a downstream data packet, 86 prefixed with 2 bytes header as shown above.
Note: See TracChangeset
for help on using the changeset viewer.
