initial import of Connelly's public domain I2P python lib

This commit is contained in:
jrandom
2004-07-21 07:42:29 +00:00
committed by zzz
parent 8603250d73
commit 5214436d18
39 changed files with 4533 additions and 0 deletions

View File

@ -0,0 +1,11 @@
# -----------------------------------------------
# stream.py: Simple stream client
# -----------------------------------------------
from i2p import sam
S = sam.socket('Alice', sam.SOCK_STREAM)
S.connect('duck.i2p')
S.send('GET / HTTP/1.0\r\n\r\n') # Send request
print S.recv(1000) # Read up to 1000 bytes