Files
i2p.i2p/apps/sam/python/src/examples/raw_server.py
2004-08-02 14:34:06 +00:00

15 lines
327 B
Python

#! /usr/bin/env python
# -----------------------------------------------
# raw_server.py: Raw server
# -----------------------------------------------
from i2p import socket
S = socket.socket('Eve', socket.SOCK_RAW)
print 'Serving at:', S.dest
while True:
data = S.recv(1000) # Read packet
print 'Got', data