netarch/dumbdecode.py

14 lines
255 B
Python
Raw Normal View History

2018-07-16 08:55:58 -06:00
#! /usr/bin/python3
2018-07-09 17:14:19 -06:00
import sys
from netarch import ip
from netarch import *
s = None
reseq = ip.Dispatch(*sys.argv[1:])
for h, d in reseq:
srv, first, chunk = d
if not s:
s = ip.Session(first)
s.handle(srv, first, chunk, reseq.last)