The minitut from here
https://geti2p.net/en/get-involved/develop/applications
has a echoclient/server demo. But it does not work. The client does not print the answer from the server bec.
readline() expects a "\n" at the end, but that is missing.
Solution:
in i2p.echoserver.Main change this:
instead of bc.write(line); it must be bw.write(line + "\n"); Then the client detects the answer.
this is missing in the in i2p.echoserver.Main, add it:
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;