diff --git a/i2p2www/pages/site/docs/api/samv3.html b/i2p2www/pages/site/docs/api/samv3.html index d8e0402f..fd0b4b99 100644 --- a/i2p2www/pages/site/docs/api/samv3.html +++ b/i2p2www/pages/site/docs/api/samv3.html @@ -98,7 +98,7 @@ is associated with one of the three types above, and cannot carry communications of another type.
-No SAM communication can occur until after the client and bridge have agreed on a protocol version, which is done by the client sending @@ -126,7 +126,7 @@ If some error occurred, such as a bad request format, it replies with :
-A SAM session is created by a client opening a socket to the SAM bridge, operating a handshake, and sending a SESSION CREATE message, @@ -243,7 +243,7 @@ the session dies for any reason, the SAM bridge closes the socket.
-Virtual streams are guaranteed to be sent reliably and in order, with failure and success notification as soon as it is available. @@ -257,7 +257,7 @@ he wants to listen to requests coming from other I2P destinations.
-A client asks for a connection by :
A client waits for an incoming connection request by :
A client can use a regular socket server and wait for connection requests coming from I2P. For that, the client has to : @@ -392,7 +392,7 @@ open a new socket with the SAM bridge pass the same HELLO handshake as above
-> STREAM FORWARD @@ -460,7 +460,7 @@ soon as the "forwarding" socket is closed. -SAM repliable datagrams : sending a datagram
+SAM Repliable Datagrams : Sending a Datagram
While I2P doesn't inherently contain a FROM address, for ease of use an additional layer is provided as repliable datagrams - unordered @@ -488,7 +488,7 @@ following format :
Received datagrams are written by SAM on the socket from which the datagram session was opened, unless specified otherwise by the CREATE @@ -532,7 +532,7 @@ or other fields, merely the data that the sender provided. This continues until the session is closed (by the client dropping the connection). -
When creating a datagram session, the client can ask SAM to forward incoming messages to a specified ip:port. It does so by issuing the @@ -587,7 +587,7 @@ depending on signature type.
-Squeezing the most out of I2P's bandwidth, SAM allows clients to send and receive anonymous datagrams, leaving authentication and reply @@ -648,7 +648,7 @@ as appropriate. Support for the ID parameter may be added in a future release. -
The following message can be used by the client to query the SAM bridge for name resolution: @@ -658,6 +658,7 @@ bridge for name resolution: NAME=$name +
which is answered by
@@ -726,7 +727,7 @@ which is 884 or more base 64 characters (663 or more bytes in binary), depending on signature type. The binary format is specified in Private Key File. -RESULT values
+RESULT Values
These are the values that can be carried by the RESULT field, with their meaning: @@ -760,7 +761,7 @@ See those references for option names and defaults. Base 64 encoding must use the I2P standard Base 64 alphabet "A-Z, a-z, 0-9, -, ~".
-Client library implementations
+Client Library Implementations
Client libraries are available for C, C++, C#, Perl, and Python. These are in the apps/sam/ directory in the I2P Source Package.