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,10 +1,11 @@
#! /usr/bin/env python
# -----------------------------------------------
# raw.py: Raw client
# -----------------------------------------------
from i2p import sam
from i2p import socket
dest = sam.resolve('yourserver.i2p') # Send to dest
S = sam.socket('Carol', sam.SOCK_RAW)
dest = socket.resolve('yourserver.i2p') # Send to dest
S = socket.socket('Carol', socket.SOCK_RAW)
S.sendto('Hello packet', 0, dest)