update protocol (formal things)

[mihi]
This commit is contained in:
mihi
2004-04-08 18:23:48 +00:00
committed by zzz
parent e8a2130094
commit e56dcba9d3

View File

@ -1,5 +1,5 @@
ministreaming protocol:
*******************
ministreaming protocol
**********************
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.
"actions" are the things a proper tunnel implementation SHOULD do
when it receives such a message.
"actions" are the things a proper ministreaming implementation SHOULD
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:
===============
@ -25,13 +27,13 @@ Client->Server:
0xA0 Send data
id: the server id
payload: the data to send
actions: send the data to the TCP connection
actions: send the data to the ministreaming connection
0xA1 SYN
id: the client id
payload: the public key dynamically created by the client
actions: create a server ID and create a TCP connection. When successful,
send an ACK back, otherwise a close.
actions: create a server ID and create a ministreaming connection. When
successful, send an ACK back, otherwise a close.
0xA2 Close
id: the server id
@ -44,7 +46,7 @@ Server->Client
0x50 Send data
id: the client id
payload: the data to send
actions: send the data to the TCP connection
actions: send the data to the ministreaming connection
0x51 ACK
id: the client id