Updated Python I2P version 0.91 by sunshine

This commit is contained in:
sunshine
2004-08-02 14:34:06 +00:00
committed by zzz
parent f2cadb7278
commit 9df57a47d5
15 changed files with 73 additions and 775 deletions

View File

@@ -1,11 +1,12 @@
#! /usr/bin/env python
# -----------------------------------------------
# stream.py: Simple stream client
# -----------------------------------------------
from i2p import sam
from i2p import socket
S = sam.socket('Alice', sam.SOCK_STREAM)
S = socket.socket('Alice', socket.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