libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] MHD_create_response_from_fd using a pipe


From: Denis Dowling
Subject: [libmicrohttpd] MHD_create_response_from_fd using a pipe
Date: Tue, 2 Jun 2015 06:07:07 +0000

Hi,

 

I am looking at generating some content from the result of a zip process and it would be neat if I could get the popen() pipe to push data directly into MHD_create_response. It looks like this would almost work by using MHD_create_response_from_callback but also setting the response->fd to be the fd of the pipe returned by popen(). Read callback would be mostly the same as happens for a file. The size would be set to -1 for chunked output. pclose() call could be run from the free callback.

 

Has anyone done something like this before? There is an issue that the response->fd is opaque from user code and would need some function to expose.

 

Regards,

Denis


The information contained in this message and any attachments is strictly confidential and intended solely for the use of the intended recipient(s). The copyright in this communication belongs to (HSD). This message and any attachments are confidential and may be subject to legal or other professional privilege. Any confidentiality or privilege is not waived or lost because this e-mail has been sent to you by mistake. If you have received this transmission in error, please notify HSD on +61 3 9875 5900 immediately and destroy all copies of this e-mail. The contents of this email message may not be quoted, copied, reproduced or published in part or in whole, without the written authorisation of HSD.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]