< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] proposed accessors for SipMessage raw body


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@xxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx
https://list.resiprocate.org/mailman/listinfo/resiprocate-devel