forked from I2P_Developers/i2p.i2p
updated the readme to reference the current specs and implementations
removed the old out of date jython and python code
This commit is contained in:
3957
apps/sam/code.leo
3957
apps/sam/code.leo
File diff suppressed because it is too large
Load Diff
@@ -1,27 +1,8 @@
|
|||||||
SAM - Simple Anonymous Messaging - is a protocol which allows
|
The Simple Anonymous Messaging protocol provides a way for
|
||||||
I2P applications to access the I2P network via an unencrypted
|
client applications to communicate anonymously over I2P without
|
||||||
TCP socket connection.
|
having to deal with the complexities of I2CP. More information can
|
||||||
|
be found at http://www.i2p.net/sam and a comparison of the various
|
||||||
Interim SAM protocol specification can be found at:
|
client access techniques is up at http://www.i2p.net/applications
|
||||||
http://drupal.i2p.net/node/view/144
|
|
||||||
|
|
||||||
At time of first writing this README, an implementation of the SAM
|
|
||||||
server has been implemented in Jython (www.jython.org).
|
|
||||||
|
|
||||||
You can find the server code, and build files, in the ../jython
|
|
||||||
directory.
|
|
||||||
|
|
||||||
A python client implementation, containing demo functions,
|
|
||||||
can be found in the ../python directory.
|
|
||||||
|
|
||||||
I2P developers are strongly encouraged to create SAM
|
|
||||||
client implementations in other languages, most importantly,
|
|
||||||
popular portable languages like C/C++, Perl and Ruby.
|
|
||||||
|
|
||||||
The 'code.leo' file in this directory is used by the Leo
|
|
||||||
code editor (http://leo.sf.net), to manage the source in a
|
|
||||||
flexible tree format. While I can't insist on it, I'd
|
|
||||||
massively appreciate it if you could use this editor when
|
|
||||||
making additions and changes to the files herein, because
|
|
||||||
it will save me a lot of maintenance effort.
|
|
||||||
|
|
||||||
|
There are a few SAM libraries available in this package, as well as
|
||||||
|
a Java implementation of the SAM bridge.
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
-----------------------------------
|
|
||||||
Instructions for building i2psam.jar
|
|
||||||
------------------------------------
|
|
||||||
|
|
||||||
1) Requirements
|
|
||||||
|
|
||||||
You will need:
|
|
||||||
|
|
||||||
- jython - www.jython.org
|
|
||||||
|
|
||||||
Note that you don't need python to build the SAM server
|
|
||||||
|
|
||||||
IMPORTANT - when you're installing jython, and running
|
|
||||||
'java on jython_n.n.class',
|
|
||||||
make sure you run the java.exe that's in your SDK, not the one in your
|
|
||||||
JRE.
|
|
||||||
|
|
||||||
---------------------------------------------------------
|
|
||||||
|
|
||||||
2) Preparation
|
|
||||||
|
|
||||||
- add the main jython directory to your PATH. Test this by typing
|
|
||||||
'jythonc' from a shell prompt.
|
|
||||||
|
|
||||||
----------------------------------------------------------
|
|
||||||
|
|
||||||
3) Building
|
|
||||||
|
|
||||||
- type 'ant build'
|
|
||||||
|
|
||||||
----------------------------------------------------------
|
|
||||||
|
|
||||||
4) Installing
|
|
||||||
|
|
||||||
Copy i2psam.jar to wherever the jar files live on your i2p installation,
|
|
||||||
usually <i2pbasedir>/lib
|
|
||||||
|
|
||||||
Find jython.jar, and copy it there too
|
|
||||||
|
|
||||||
----------------------------------------------------------
|
|
||||||
|
|
||||||
5) Running
|
|
||||||
|
|
||||||
(assuming that you're putting the start script into your main i2p
|
|
||||||
runtime directory, where the I2P jars live in a 'lib' subdirectory)
|
|
||||||
|
|
||||||
You will need to launch i2psam.jar with a command like:
|
|
||||||
|
|
||||||
java -cp lib/jython.jar:lib/i2p.jar:lib/mstreaming.jar:lib/i2psam.jar i2psam
|
|
||||||
|
|
||||||
or on windows,
|
|
||||||
|
|
||||||
java -cp lib\jython.jar;lib\i2p.jar;lib\mstreaming.jar;lib\i2psam.jar i2psam
|
|
||||||
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project basedir="." default="all" name="sam">
|
|
||||||
|
|
||||||
<target name="all" depends="build" />
|
|
||||||
|
|
||||||
<target name="build" depends="builddep, jar" />
|
|
||||||
|
|
||||||
<target name="builddep">
|
|
||||||
<ant dir="../../../core/java/" target="build" />
|
|
||||||
<ant dir="../../ministreaming/java/" target="build" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="jar">
|
|
||||||
|
|
||||||
<condition property="jythonext" value=".bat">
|
|
||||||
<os family="windows" />
|
|
||||||
</condition>
|
|
||||||
<condition property="jythonext" value="">
|
|
||||||
<not>
|
|
||||||
<os family="windows" />
|
|
||||||
</not>
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<exec executable="jythonc${jythonext}" dir=".">
|
|
||||||
<env key="CLASSPATH" path="../../../core/java/build/i2p.jar:../../ministreaming/java/build/mstreaming.jar"/>
|
|
||||||
<arg value="--jar"/><arg path="./i2psam.jar"/>
|
|
||||||
<arg path="./src/i2psam.py"/>
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="clean">
|
|
||||||
<delete file="i2psam.jar" />
|
|
||||||
<delete dir="./jpywork" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user