initial import of Connelly's public domain I2P python lib

This commit is contained in:
jrandom authored and zzz committed 2004-07-21 07:42:29 +00:00
1 parent 8603250d73
commit 5214436d18
39 files changed
+4533

No files matched your search

@@ -0,0 +1,13 @@
# -----------------------------------------------
# raw_server.py: Raw server
# -----------------------------------------------
from i2p import sam
S = sam.socket('Eve', sam.SOCK_RAW)
print 'Serving at:', S.dest
while True:
data = S.recv(1000) # Read packet
print 'Got', data