TUX_ACTION_GET_OBJECT and TUX_ACTION_READ_OBJECT

Dormando <[email protected]>
Newsgroups gmane.network.tux
Message-ID <[email protected]>
Hello,

I need to do some bit of MIME work in a tux module (for handling images
without a file extention) and I want to do this as fast as possible.

The easy way I see to do it is to reserve a healthy amount of space for
req->object_addr (all of the files have a max size, in this case) and then
run TUX_ACTION_READ_OBJECT, use the buffer to do the MIME work and finish
the steps.

How much slower is this than just using TUX_ACTION_GET_OBJECT, if at all?
Is it possible at all to check the read object and tell tux which mime
type to use?
I'm also not too sure about TUX_ACTION_READ_OBJECT, and how it behaves if
I accidentally give it a buffer too small for the object.

thanks,
-Alan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.