From: "Attila Sipos" <[EMAIL PROTECTED]> Instead of trying to allocate a maximum amoount of memory for any specific headers, it would be better to allocate yourself a big scratchpad of memory and then copy strings into there as required. Or something like that.
Better is to allocate a reasonable scratchpad and keep track of how much of it you have used. If it fills, reallocate a larger scratchpad. That way, no message is too large. If you always enlarge the scratchpad by a fixed percentage (we usually use 100%), the overhead of reallocating is always kept to a fixed percentage of the total processing effort. Dale _______________________________________________ Sip-implementors mailing list [email protected] https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
