---------- Forwarded message ---------- From: Siddhesh PaiRaikar <siddhesh.pairaikar@xxxxxxxxx> Date: Tue, 27 Feb 2007 12:30:50 +0530 Subject: Re: Re: redirect program technicalities To: Henrik Nordstrom <henrik@xxxxxxxxxxxxxxxxxxx>
>> > On 2/12/07, Siddhesh PaiRaikar <siddhesh.pairaikar@xxxxxxxxx> wrote: >> >> hi.. >>> > >>> > Can someone please tell me .. that when squid passes on the URL to another > >>> program such as say squidguard... > >>> > >>> does it write to stdin or somewhere else... and also wen it gets back a URL > >>> from the external program.. does it get it on stdout... > >yes, or it writes to an IPC channel connected to the helpers stdin, and > >receives responses on an IPC channel connected to the helpers stdout. >>> > as when i studied the code of squidguard i found out that squidguard writes >>> > the URLs to and retrieves them from stdout and stdin respectively buti am >>> > unable to find that matching code in squid... i tried a lot.. >>redirect.c, calling helper.c functions for talking to the helper, using >>ipc.c functions for setting up the communication.
could you please elaborate a little more on the above ... i am yet failing to realize the process after so much of studying... -- - Siddhesh -- - Siddhesh