On Sun, Jul 10, 2011 at 1:59 PM, Littlefield, Tyler <ty...@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.
-- http://mail.python.org/mailman/listinfo/python-list