I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit 4d666662 authored by zzz's avatar zzz
Browse files

SAM: Add section on accept errors

ref: Gitlab i2p.i2p #399
parent 58883084
No related branches found
No related tags found
No related merge requests found
{% extends "global/layout.html" %} {% extends "global/layout.html" %}
{% block title %}SAM V3{% endblock %} {% block title %}SAM V3{% endblock %}
{% block lastupdated %}2023-01{% endblock %} {% block lastupdated %}2023-10{% endblock %}
{% block accuratefor %}API 0.9.57{% endblock %} {% block accuratefor %}API 0.9.59{% endblock %}
{% block content %} {% block content %}
<p>SAM is a simple client protocol for interacting with I2P. <p>SAM is a simple client protocol for interacting with I2P.
SAM is the recommended protocol for non-Java applications to connect to the I2P network, SAM is the recommended protocol for non-Java applications to connect to the I2P network,
...@@ -944,6 +944,26 @@ passing through the current socket is forwarded from and to the connected ...@@ -944,6 +944,26 @@ passing through the current socket is forwarded from and to the connected
I2P destination peer, until one of the peer closes the socket. I2P destination peer, until one of the peer closes the socket.
</p> </p>
<h4>Errors After OK</h4>
<p>
In rare cases, the SAM bridge may encounter an error after sending RESULT=OK,
but before a connection comes in and sending the $destination line to the client.
These errors may include router shutdown, router restart, and session close.
In these cases, when SILENT=false, the SAM bridge may, but is not required to
(implementation-dependent), send the line:
<pre>
&lt;- STREAM STATUS
RESULT=I2P_ERROR
[MESSAGE=...]
</pre>
before immediately closing the socket. This line is not, of course, decodable as a
valid Base 64 destination.
</p>
<h3>SAM Virtual Streams : FORWARD</h3> <h3>SAM Virtual Streams : FORWARD</h3>
<p> <p>
A client can use a regular socket server and wait for connection requests A client can use a regular socket server and wait for connection requests
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment