forked from I2P_Developers/i2p.i2p
initial import of Connelly's public domain I2P python lib
This commit is contained in:
10
apps/sam/python/src/examples/raw.py
Normal file
10
apps/sam/python/src/examples/raw.py
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
# -----------------------------------------------
|
||||
# raw.py: Raw client
|
||||
# -----------------------------------------------
|
||||
|
||||
from i2p import sam
|
||||
|
||||
dest = sam.resolve('yourserver.i2p') # Send to dest
|
||||
S = sam.socket('Carol', sam.SOCK_RAW)
|
||||
S.sendto('Hello packet', 0, dest)
|
||||
Reference in New Issue
Block a user