netarch/examples/dumbdecode.py

13 lines
202 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
2020-09-21 14:00:59 -06:00
import netarch
2018-07-09 17:14:19 -06:00
2020-09-21 14:00:59 -06:00
class DumbPacket(netarch.Packet):
def parse(self, data):
self.payload = data
2020-09-21 14:00:59 -06:00
class DumbSession(netarch.Session):
Packet = DumbPacket
2021-07-02 17:18:59 -06:00
netarch.main(DumbSession)