forked from I2P_Developers/i2p.i2p
update protocol (formal things)
[mihi]
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
ministreaming protocol:
|
ministreaming protocol
|
||||||
*******************
|
**********************
|
||||||
|
|
||||||
Each message looks like the following
|
Each message looks like the following
|
||||||
|
|
||||||
@ -15,9 +15,11 @@ These IDs may be any 3-byte values except 00 00 00, which is reserved.
|
|||||||
|
|
||||||
All connections are created as PROP_RELIABILITY_GUARANTEED.
|
All connections are created as PROP_RELIABILITY_GUARANTEED.
|
||||||
|
|
||||||
"actions" are the things a proper tunnel implementation SHOULD do
|
"actions" are the things a proper ministreaming implementation SHOULD
|
||||||
when it receives such a message.
|
do when it receives such a message.
|
||||||
|
|
||||||
|
A "ministreaming connection" is a connection where the user of the
|
||||||
|
library can send data into or receive from.
|
||||||
|
|
||||||
Client->Server:
|
Client->Server:
|
||||||
===============
|
===============
|
||||||
@ -25,13 +27,13 @@ Client->Server:
|
|||||||
0xA0 Send data
|
0xA0 Send data
|
||||||
id: the server id
|
id: the server id
|
||||||
payload: the data to send
|
payload: the data to send
|
||||||
actions: send the data to the TCP connection
|
actions: send the data to the ministreaming connection
|
||||||
|
|
||||||
0xA1 SYN
|
0xA1 SYN
|
||||||
id: the client id
|
id: the client id
|
||||||
payload: the public key dynamically created by the client
|
payload: the public key dynamically created by the client
|
||||||
actions: create a server ID and create a TCP connection. When successful,
|
actions: create a server ID and create a ministreaming connection. When
|
||||||
send an ACK back, otherwise a close.
|
successful, send an ACK back, otherwise a close.
|
||||||
|
|
||||||
0xA2 Close
|
0xA2 Close
|
||||||
id: the server id
|
id: the server id
|
||||||
@ -44,7 +46,7 @@ Server->Client
|
|||||||
0x50 Send data
|
0x50 Send data
|
||||||
id: the client id
|
id: the client id
|
||||||
payload: the data to send
|
payload: the data to send
|
||||||
actions: send the data to the TCP connection
|
actions: send the data to the ministreaming connection
|
||||||
|
|
||||||
0x51 ACK
|
0x51 ACK
|
||||||
id: the client id
|
id: the client id
|
||||||
|
Reference in New Issue
Block a user