[reSIProcate] proposed accessors for SipMessage raw body
Francis Joanis
francis.joanis at gmail.com
Thu Mar 17 07:22:39 CDT 2011
Hi Kennard,
What exactly is your use case? Handling a lot of 'unknown' content types?
I think it is a good idea to have a similar API to *RawHeader but I also
like the ability to have customized objects to represent body types (you can
dynamic_cast them, store custom data in them, have type safety, ...).
If your need is to handle unknown types, I wonder if using (or refactoring)
GenericContents or PlainContents (or maybe creating an actual RawContents
class) would work.
Regards,
Francis
On Wed, Mar 16, 2011 at 2:47 PM, Kennard White
<kennard_white at logitech.com>wrote:
> Hey,
>
> I'm proposing the attached patch which provides a way to get a message's
> raw body data without converting it into a resip::Contents class. The intent
> is to mimic the get/setRawHeader() accessors.
>
> Any comments?
>
> Thanks,
> Kennard
>
>
>
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at resiprocate.org
> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20110317/42dba0d2/attachment.htm>
More information about the resiprocate-devel
mailing list