parsing packets

Dan Stromberg drsalists at gmail.com
Tue Jul 12 01:16:32 CEST 2011


On Sun, Jul 10, 2011 at 1:59 PM, Littlefield, Tyler <tyler at tysdomain.com>wrote:

> Hello all:
> I'm working on a server that will need to parse packets sent from a client,
> and construct it's own packets.
>

I like to use this module (I wrote while in the employ of UCI, so it's under
a UCI - BSDesque - license, but they've given redistribution permission so
long as the module is under their license) to extract pieces from a data
source with varied field lengths:

http://stromberg.dnsalias.org/~dstromberg/bufsock.html


I use it often with TCP.  For UDP, I'd probably catentate the blocks
recieved and then pull data back out of the aggregate using bufsock - to
deal with the possibility of fragmentation or aggregation in transit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110711/c80a29cf/attachment.html>


More information about the Python-list mailing list