[Shtoom] patch: refactor packets

Anthony Baxter anthony at interlink.com.au
Mon Jan 24 12:27:51 CET 2005

On Sunday 23 January 2005 22:35, Zooko O'Whielacronx wrote:
> It separates the PT (Payload Type) byte from the Content Type object.  
> It makes parsing a stateless function instead of a parser object.  It
> makes all values of an RTP packet passed as ctor args instead of poked
> into place after construction.  It handles up to one RTP extension
> header.  It puts the RTP header stuff into a separate object, which is
> convenient if you have a function that needs to get the netbytes for
> the header separately from the netbytes for the payload (which I have).
> This patch also refactors the "send an RTP packet" functionality of RTP
> Protocol.  There is a nice unified "_send_packet()" and a nice
> "_send_cn_packet()".

This is now checked in. Thanks for the patch!

Anthony Baxter     <anthony at interlink.com.au>
It's never too late to have a happy childhood.

More information about the Shtoom mailing list