diff --git a/apps/sam/python/doc/guide/eeproxy.html b/apps/sam/python/doc/guide/eeproxy.html index f5a2e6945..909deea73 100644 --- a/apps/sam/python/doc/guide/eeproxy.html +++ b/apps/sam/python/doc/guide/eeproxy.html @@ -4,9 +4,7 @@ - + + + +

User's Guide:i2p.BaseHTTPServer

From Python-I2P. + + +

+Emulates Python BaseHTTPServer module using I2P sockets. + + +

+ +

Overview

+ +

+The Python module is described at http://www.python.org/doc/current/lib/module-BaseHTTPServer.html + +

+To get a server going, use: + +

+

+ +

+Consult the documentation for function test() to change basic server settings, such as the session name. + +

+A fully customizable example: + +

+

+ +

+ +

Classes

+ +

+class BaseHTTPRequestHandler +

+class HTTPServer + + +

+ +

Functions

+ +

+test(HandlerClass=BaseHTTPRequestHandler, ServerClass=HTTPServer, protocol='HTTP/1.0', session='mytestxxx.i2p') +

+ +

+

+ \ No newline at end of file diff --git a/apps/sam/python/doc/guide/i2p.CGIHTTPServer.html b/apps/sam/python/doc/guide/i2p.CGIHTTPServer.html new file mode 100644 index 000000000..15028f581 --- /dev/null +++ b/apps/sam/python/doc/guide/i2p.CGIHTTPServer.html @@ -0,0 +1,90 @@ + +User's Guide:i2p.CGIHTTPServer - Wikipedia + + + + + + + +

User's Guide:i2p.CGIHTTPServer

From Python-I2P. + + +

+Module i2p.CGIHTTPServer emulates the Python CGIHTTPServer module using I2P sockets. + + +

+ +

Overview

+ +

+The Python module is described at http://www.python.org/doc/current/lib/module-CGIHTTPServer.html + +

+To get a server going, use: + +

+

+ +

+Consult the documentation for function test() to change basic server settings, such as the session name. + +

+A fully customizable example: + +

+

+ +

+ +

Classes

+ +

+class CGIHTTPRequestHandler +

+ +

+ +

Functions

+ +

+ +test(HandlerClass=CGIHTTPRequestHandler, +ServerClass=i2p.BaseHTTPServer.HTTPServer, +session='mytestxxx.i2p') +

+ +

+

+ \ No newline at end of file diff --git a/apps/sam/python/doc/guide/i2p.SimpleHTTPServer.html b/apps/sam/python/doc/guide/i2p.SimpleHTTPServer.html new file mode 100644 index 000000000..648ecfcf8 --- /dev/null +++ b/apps/sam/python/doc/guide/i2p.SimpleHTTPServer.html @@ -0,0 +1,88 @@ + +User's Guide:i2p.SimpleHTTPServer - Wikipedia + + + + + + + +

User's Guide:i2p.SimpleHTTPServer

From Python-I2P. + + +

+Emulates Python SimpleHTTPServer module using I2P sockets. + + +

+ +

Overview

+ +

+The Python module is described at http://www.python.org/doc/current/lib/module-SimpleHTTPServer.html + +

+To get a server going, use: + +

+

+ +

+Consult the documentation for function test() to change basic server settings, such as the session name. + +

+A fully customizable example: + +

+

+ +

+ +

Classes

+ +

+class SimpleHTTPRequestHandler +

+ +

+ +

Functions

+ +

+ +test(HandlerClass=SimpleHTTPRequestHandler, ServerClass= i2p.BaseHTTPServer.HTTPServer, session='mytestxxx.i2p') +

+ +

+

+ + \ No newline at end of file diff --git a/apps/sam/python/doc/guide/i2p.SocketServer.html b/apps/sam/python/doc/guide/i2p.SocketServer.html new file mode 100644 index 000000000..cc588a516 --- /dev/null +++ b/apps/sam/python/doc/guide/i2p.SocketServer.html @@ -0,0 +1,50 @@ + +User's Guide:i2p.SocketServer - Wikipedia + + + + + + + +

User's Guide:i2p.SocketServer

From Python-I2P. + + +

+Emulates Python SocketServer module using I2P sockets. + + +

+The Python module is described at http://www.python.org/doc/current/lib/module-SocketServer.html + +

+ +

Classes

+ +

+

+ +

+

+ \ No newline at end of file diff --git a/apps/sam/python/doc/guide/i2p.eep.html b/apps/sam/python/doc/guide/i2p.eep.html index 3cd24db4d..db2519e2d 100644 --- a/apps/sam/python/doc/guide/i2p.eep.html +++ b/apps/sam/python/doc/guide/i2p.eep.html @@ -4,9 +4,7 @@ - + + + +

User's Guide:i2p.select

From Python-I2P. + + +

+Module i2p.select emulates the Python module select. + + +

+With this module, a program can perform select and poll commands on traditional and I2P sockets. + +

+poll() +

+ +

+select(readlist, writelist, errlist, timeout=None) +

+ +

+Polling flags + +

+ +

+

+ \ No newline at end of file diff --git a/apps/sam/python/doc/guide/i2p.socket.html b/apps/sam/python/doc/guide/i2p.socket.html new file mode 100644 index 000000000..621ddc83a --- /dev/null +++ b/apps/sam/python/doc/guide/i2p.socket.html @@ -0,0 +1,376 @@ + +User's Guide:i2p.socket - Wikipedia + + + + + + + +

User's Guide:i2p.socket

From Python-I2P. + + +

+Module i2p.socket allows Python programs to access the SAM proxy. It emulates the Python module socket. + + +

+With this module, a program can send stream data, datagrams, and raw packets across the I2P network. + +

+ +

+Table of contents
+ + +
+3 Errors
+ +
+ +

+

Sockets

+ +

+class socket(session, type, samaddr='127.0.0.1:7656', **kwargs) +

+The class socket defines the following properties: + + + +

+The class socket defines the following methods: + +

+accept(self) +

+bind(self, address) + +close(self) + +connect(self, address) + + +connect_ex(self, address) + +getpeername(self) + + +getsockname(self) + +gettimeout(self) + +listen(self, backlog) + +makefile(self, mode='r', bufsize=-1) + +recv(self, bufsize, flags=0) + + +recvfrom(self, bufsize, flags=0) + +send(self, string, flags=0) + +sendall(self, string, flags=0) + +sendto(self, string, flags, address) + +setblocking(self, flag) + + +settimeout(self, value) + + +

+ +

Functions

+ +

+Functions defined in module i2p.socket: + +

+resolve(host, samaddr='127.0.0.1:7656') +

+ +

+ +

Errors

+ +

+class Error(i2p.Error) +

+class BlockError(Error) + + +class ClosedError(Error) + +class NetworkError(Error) + + +

+ +

Constants

+ +

+Socket types +

+Packet sizes + +Flags for recv() + + +

+

+ \ No newline at end of file diff --git a/apps/sam/python/doc/guide/i2p.tunnel.html b/apps/sam/python/doc/guide/i2p.tunnel.html new file mode 100644 index 000000000..b4410a0b4 --- /dev/null +++ b/apps/sam/python/doc/guide/i2p.tunnel.html @@ -0,0 +1,124 @@ + +User's Guide:i2p.tunnel - Wikipedia + + + + + + + +

User's Guide:i2p.tunnel

From Python-I2P. + + +

+Module i2p.tunnel allows data to be exchanged between traditional TCP sockets and I2P sockets. + + +

+ +

Tunnels

+ +

+Tunnels allow stream sockets to be joined, so that connections to a listening socket are relayed to one or more sending sockets. This allows an ordinary web server to be exposed as an I2P Destination, or an I2P Destination to be bound as a local port, and so on. + +

+class Tunnel(self, receive, make_send, nconnect=-1, timeout=60.0) +

+ +

+close() +

+ +

+ +

Tunnel Server

+ +

+class TunnelServer(session, port, samaddr='127.0.0.1:7656', nconnect=-1, timeout=None, **kwargs) +

+ +

+TunnelServer properties: +

+ +

+ +

Tunnel Client

+ +

+class TunnelClient(session, port, dest, samaddr='127.0.0.1:7656', nconnect=-1, timeout=None, **kwargs) +

+ +

+TunnelClient properties: +

+ +

+

+ \ No newline at end of file diff --git a/apps/sam/python/doc/guide/index.html b/apps/sam/python/doc/guide/index.html index 3c9f587d0..a231c44f9 100644 --- a/apps/sam/python/doc/guide/index.html +++ b/apps/sam/python/doc/guide/index.html @@ -4,9 +4,7 @@ -