Files
i2p.i2p/apps/sam/python/src/examples/raw.py

12 lines
308 B
Python
Raw Normal View History

#! /usr/bin/env python
# -----------------------------------------------
# raw.py: Raw client
# -----------------------------------------------
from i2p import socket
dest = socket.resolve('yourserver.i2p') # Send to dest
S = socket.socket('Carol', socket.SOCK_RAW)
S.sendto('Hello packet', 0, dest)